Files
go-zero/core/conf/options.go
2021-01-21 19:33:34 +08:00

16 lines
158 B
Go

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