laboratory/experiments/go/custom-logger/main.go
Dan Anglin f10b079055
feat: add experiments
- custom logger
- simple mutex example
2022-10-29 23:56:53 +01:00

10 lines
208 B
Go

package main
func main() {
l := newLogger(true)
l.Debugln("This is a debug log.")
l.Infoln("This is an info log.")
l.Infof("Formatting test: Number is %d.", 2)
l.Errorln("This is an error message.")
}