Versions in this module Expand all Collapse all v0 v0.1.0 May 21, 2021 Changes in this version + var CONF = newConfigOpts() + type BoolOpt struct + func NewBoolOpt(name string) *BoolOpt + func (o *BoolOpt) Default() bool + func (o *BoolOpt) Name() string + func (o *BoolOpt) WithDefault(value bool) *BoolOpt + type ConfigOpts struct + func (c *ConfigOpts) Get(group, option string) string + func (c *ConfigOpts) GetBool(group, option string) (bool, 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) 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 IntOpt struct + func NewIntOpt(name string) *IntOpt + func (o *IntOpt) Default() int + func (o *IntOpt) Name() string + func (o *IntOpt) WithDefault(value int) *IntOpt + type ListOpt struct + func NewListOpt(name string) *ListOpt + func (o *ListOpt) Default() []string + func (o *ListOpt) Name() string + func (o *ListOpt) WithDefault(first string, others ...string) *ListOpt + type OptGroup struct + func NewOptGroup(name string) *OptGroup + func (g *OptGroup) Name() string + func (g *OptGroup) String() string + type StrOpt struct + func NewStrOpt(name string) *StrOpt + func (o *StrOpt) Default() string + func (o *StrOpt) Name() string + func (o *StrOpt) WithDefault(value string) *StrOpt