(logIps bool, addr net.Addr)
| 26 | var mainModuleName = buildInfo.Main.Path[strings.LastIndex(buildInfo.Main.Path, "/")+1:] |
| 27 | |
| 28 | func FormatAddr(logIps bool, addr net.Addr) string { |
| 29 | if logIps { |
| 30 | return "[" + addr.String() + "] " |
| 31 | } |
| 32 | return "" |
| 33 | } |
| 34 | |
| 35 | func timeString() string { |
| 36 | time := time.Now() |
no test coverage detected