Documentation ¶
Index ¶
- func NewCliReader(rootCmd ...*cobra.Command) (io.ReadCloser, error)
- func NewFileReader(path string) (io.ReadCloser, error)
- type Config
- func (c *Config) GetBool(k string, defaults ...bool) bool
- func (c *Config) GetInt(k string, defaults ...int) int
- func (c *Config) GetString(k string, defaults ...string) string
- func (c *Config) Sub(prefix string) (*Config, error)
- func (c *Config) Unmarshal(prefix string, v interface{}) error
- func (c *Config) UnmarshalALL(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCliReader ¶
func NewCliReader(rootCmd ...*cobra.Command) (io.ReadCloser, error)
func NewFileReader ¶
func NewFileReader(path string) (io.ReadCloser, error)
Types ¶
type Config ¶
func (*Config) UnmarshalALL ¶
Click to show internal directories.
Click to hide internal directories.