config

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(conf interface{}, path string, expand bool) error

Load load the YAML configuration from the file at the given path.

Types

type Config added in v0.3.0

type Config struct {
	Path      string `json:"path" yaml:"path"`
	ExpandEnv bool   `json:"expand_env" yaml:"expand_env"`
}

func (*Config) RegisterFlags added in v0.3.0

func (c *Config) RegisterFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL