mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
16 lines
158 B
Go
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
|
||
|
}
|
||
|
}
|