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
When I tried to use an instance of LoggerMock as a ctxd.Logger, I get the following error:
Cannot use 'l' (type LoggerMock) as the type ctxd.Logger Type does not implement 'ctxd.Logger' as the 'Debug' method has a pointer receiver
import "github.com/bool64/ctxd" type Server struct { log ctxd.Logger } func NewServer(log ctxd.Logger) *Server { return &Server{log: log} } l := ctxd.LoggerMock{} s := NewServer(l)
The text was updated successfully, but these errors were encountered:
LoggerMock is intended to be used by pointer, please try:
LoggerMock
import "github.com/bool64/ctxd" type Server struct { log ctxd.Logger } func NewServer(log ctxd.Logger) *Server { return &Server{log: log} } l := ctxd.LoggerMock{} s := NewServer(&l)
Sorry, something went wrong.
No branches or pull requests
When I tried to use an instance of LoggerMock as a ctxd.Logger, I get the following error:
The text was updated successfully, but these errors were encountered: