You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package conf
|
|
|
|
type (
|
|
// Option defines the method to customize the config options.
|
|
Option func(opt *options)
|
|
|
|
options struct {
|
|
env bool
|
|
}
|
|
)
|
|
|
|
// UseEnv customizes the config to use environment variables.
|
|
func UseEnv() Option {
|
|
return func(opt *options) {
|
|
opt.env = true
|
|
}
|
|
}
|