We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System (please complete the following information):
Describe the bug
Error in usage example of NewFlushCloseHandler or error in function
To Reproduce
buf := new(bytes.Buffer) h := handler.NewFlushCloseHandler(&buf, slog.AllLevels)
Expected behavior
new FlushCloseHandler
The text was updated successfully, but these errors were encountered:
Hi @mykolq
Can use:
buf := new(bytes.Buffer) h := handler.NewIOWriterHandler(buf, slog.NormalLevels)
Or use github.com/gookit/goutil/byteutil.Buffer:
github.com/gookit/goutil/byteutil.Buffer
buf := &byteutil.Buffer{} h := handler.NewFlushCloseHandler(buf, slog.NormalLevels)
Sorry, something went wrong.
inhere
No branches or pull requests
System (please complete the following information):
Describe the bug
Error in usage example of NewFlushCloseHandler or error in function
To Reproduce
Expected behavior
new FlushCloseHandler
The text was updated successfully, but these errors were encountered: