Closed kamuik16 closed 1 month ago
Do let me know if something is not aligned with what you expected. Thanks!
This is in the right direction. Just a few issues:
Environment
interfaceI think the simplest way to do 1 and 2 for now is to use a logging library for formatting instead of implementing it from scratch. e.g.,
func debugfFormat(msg string, ctx ...interface{}) string {
var buf bytes.Buffer
logger := log.NewLogger(log.NewTerminalHandlerWithLevel(&buf, log.LevelDebug, true))
logger.Debug(msg, ctx...)
return buf.String()
}
Updated the code @therealbytes ser! Let me know if I did something wrong as I am still somewhat new to Go.
Closes #35