You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just out of my own experience using functional options (+1 on using them!) I recommend that you remove the Logger prefix in the options and add an error to the Option definition so you can handle invalid values, etc. without breaking the API at a later stage.
Just out of my own experience using functional options (+1 on using them!) I recommend that you remove the
Logger
prefix in the options and add anerror
to the Option definition so you can handle invalid values, etc. without breaking the API at a later stage.gopherlogs/options.go
Line 27 in c3745b1
The text was updated successfully, but these errors were encountered: