Documentation ¶
Index ¶
- Variables
- type BoolOpt
- type ConfigOpts
- func (c *ConfigOpts) Get(group, option string) string
- func (c *ConfigOpts) GetBool(group, option string) (bool, error)
- func (c *ConfigOpts) GetFloat(group, option string) (float64, error)
- func (c *ConfigOpts) GetInt(group, option string) (int, error)
- func (c *ConfigOpts) GetList(group, option string) []string
- func (c *ConfigOpts) GetString(group, option string) string
- func (c *ConfigOpts) GetURI(group, option string) (url.URL, error)
- func (c *ConfigOpts) ParseFile(file string) error
- func (c *ConfigOpts) RegisterGroup(group *OptGroup)
- func (c *ConfigOpts) RegisterOpt(group *OptGroup, opt interface{})
- func (c *ConfigOpts) RegisterOpts(group *OptGroup, opts ...interface{})
- type FloatOpt
- type IntOpt
- type ListOpt
- type OptGroup
- type StrOpt
- type URIOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var CONF = newConfigOpts()
Functions ¶
This section is empty.
Types ¶
type BoolOpt ¶
type BoolOpt struct {
// contains filtered or unexported fields
}
func NewBoolOpt ¶
func (*BoolOpt) WithDefault ¶
type ConfigOpts ¶
type ConfigOpts struct {
// contains filtered or unexported fields
}
func (*ConfigOpts) Get ¶
func (c *ConfigOpts) Get(group, option string) string
func (*ConfigOpts) GetFloat ¶ added in v0.3.0
func (c *ConfigOpts) GetFloat(group, option string) (float64, error)
func (*ConfigOpts) GetList ¶
func (c *ConfigOpts) GetList(group, option string) []string
func (*ConfigOpts) GetString ¶
func (c *ConfigOpts) GetString(group, option string) string
func (*ConfigOpts) GetURI ¶ added in v0.2.0
func (c *ConfigOpts) GetURI(group, option string) (url.URL, error)
func (*ConfigOpts) ParseFile ¶
func (c *ConfigOpts) ParseFile(file string) error
func (*ConfigOpts) RegisterGroup ¶
func (c *ConfigOpts) RegisterGroup(group *OptGroup)
func (*ConfigOpts) RegisterOpt ¶
func (c *ConfigOpts) RegisterOpt(group *OptGroup, opt interface{})
func (*ConfigOpts) RegisterOpts ¶
func (c *ConfigOpts) RegisterOpts(group *OptGroup, opts ...interface{})
type FloatOpt ¶ added in v0.3.0
type FloatOpt struct {
// contains filtered or unexported fields
}
func NewFloatOpt ¶ added in v0.3.0
func (*FloatOpt) WithDefault ¶ added in v0.3.0
type IntOpt ¶
type IntOpt struct {
// contains filtered or unexported fields
}
func (*IntOpt) WithDefault ¶
type OptGroup ¶
type OptGroup struct {
// contains filtered or unexported fields
}
func NewOptGroup ¶
type StrOpt ¶
type StrOpt struct {
// contains filtered or unexported fields
}
func (*StrOpt) WithDefault ¶
Click to show internal directories.
Click to hide internal directories.