Documentation
¶
Index ¶
- Variables
- func LoadPath(path string) config.LoadOption
- func NewConfig(opts ...config.Option) config.Config
- func Path(path string) config.Option
- func Reader(r io.Reader) config.Option
- func SavePath(path string) config.SaveOption
- func Transformer(t transform.Transformer) config.Option
- func WatchPath(path string) config.WatchOption
- type EnvTransformer
- type TransformerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultStructTag = "file" MaxFileSize int64 = 1 * 1024 * 1024 )
Functions ¶
func LoadPath ¶ added in v3.8.2
func LoadPath(path string) config.LoadOption
func SavePath ¶ added in v3.8.2
func SavePath(path string) config.SaveOption
func Transformer ¶ added in v3.8.6
func Transformer(t transform.Transformer) config.Option
func WatchPath ¶ added in v3.8.2
func WatchPath(path string) config.WatchOption
Types ¶
type EnvTransformer ¶ added in v3.8.6
type EnvTransformer struct { Regexp *regexp.Regexp TransformerFunc TransformerFunc // contains filtered or unexported fields }
func NewEnvTransformer ¶ added in v3.8.6
func NewEnvTransformer(rs string, trimLeft, trimRight int) (*EnvTransformer, error)
func (*EnvTransformer) Reset ¶ added in v3.8.6
func (t *EnvTransformer) Reset()
Reset resets the state and allows a Transformer to be reused.
type TransformerFunc ¶ added in v3.8.6
Click to show internal directories.
Click to hide internal directories.