1. You're right! Will fix it to handle this as well as the support for relative directories
2. Yes, Will integrate a logging library instead of fmt (https://github.com/uber-go/zap)
2. Yes, Will integrate a logging library instead of fmt (https://github.com/uber-go/zap)
Ideally you want to add an option via a function or interface:
func New(optOne bool, log func(string, ...any)) {
if log == nil {
log = func(m string, a ...any) { fmt.Printf(m, a...) }
}
log("starting; optOne=%v", optOne)
}
Or something along those lines.