github.com/simonferquel/app@v0.6.1-0.20181012141724-68b7cccf26ac/types/settings/opts.go (about) 1 package settings 2 3 // Options contains loading options for settings 4 type Options struct { 5 prefix string 6 } 7 8 // WithPrefix adds the given prefix when loading settings 9 func WithPrefix(prefix string) func(*Options) { 10 return func(o *Options) { 11 o.prefix = prefix 12 } 13 }