go-zero/core/conf/options.go

16 lines
158 B
Go
Raw Normal View History

package conf
type (
Option func(opt *options)
options struct {
env bool
}
)
func UseEnv() Option {
return func(opt *options) {
opt.env = true
}
}