fix golint issues in core/conf (#476)

This commit is contained in:
Kevin Wan
2021-02-18 15:56:19 +08:00
committed by GitHub
parent 457048bfac
commit 425be6b4a1
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package conf
type (
// Option defines the method to customize the config options.
Option func(opt *options)
options struct {
@@ -8,6 +9,7 @@ type (
}
)
// UseEnv customizes the config to use environment variables.
func UseEnv() Option {
return func(opt *options) {
opt.env = true