Files

18 lines
245 B
Go
Raw Permalink Normal View History

2019-04-22 20:46:32 +08:00
package trace
var defaultOption = option{}
type option struct {
Debug bool
}
// Option dapper Option
type Option func(*option)
// EnableDebug enable debug mode
func EnableDebug() Option {
return func(opt *option) {
opt.Debug = true
}
}