options.go 206 B

12345678910111213
  1. package client
  2. type Option func(options *Options)
  3. type Options struct {
  4. logLevel string
  5. }
  6. func WithLogLevel(logLevel string) Option {
  7. return func(options *Options) {
  8. options.logLevel = logLevel
  9. }
  10. }