MCPcopy Create free account
hub / github.com/Go-Learning-Land/Go-Learning-Archive / one

Function one

GolangBooks/masteringGo/ch05/logDefer.go:11–18  ·  view source on GitHub ↗
(aLog *log.Logger)

Source from the content-addressed store, hash-verified

9var LOG = "/tmp/mGo.log"
10
11func one(aLog *log.Logger) {
12 aLog.Println("-- FUNCTION one ------")
13 defer aLog.Println("-- FUNCTION one ------")
14
15 for i := 0; i < 10; i++ {
16 aLog.Println(i)
17 }
18}
19
20func two(aLog *log.Logger) {
21 aLog.Println("---- FUNCTION two")

Callers 1

mainFunction · 0.85

Calls 1

PrintlnMethod · 0.80

Tested by

no test coverage detected