Versions in this module Expand all Collapse all v0 v0.1.15 Aug 12, 2022 v0.1.14 Aug 12, 2022 Changes in this version + func ComposeEnvName(appName, group, name string) string + func IfErrNotNilPanic(err error) + func Item(m *types.Metadata) (t types.Item) + func List(items ...string) []string + func NewBool(m *types.Metadata) (b *types.BooT) + func NewDuration(m *types.Metadata) (b *types.DurT) + func NewFloat(m *types.Metadata) (b *types.FltT) + func NewInt(m *types.Metadata) (b *types.IntT) + func NewList(m *types.Metadata) (b *types.LstT) + func NewString(m *types.Metadata) (b *types.StrT) + func NewUint(m *types.Metadata) (b *types.UinT) + type Configs struct + func Create(appName string, items ...types.Desc) (c Configs) + func (c *Configs) Get(group, name string) (t types.Item, err error) + func (c *Configs) GetByName(name string) (t Types) + func (c *Configs) GetEnvString(group, name string) (envName string, err error) + func (c *Configs) GetGroup(group string) (t TypeGroup) + func (c *Configs) GetGroups() (tg TypesGrouped) + func (c *Configs) GetHelp(name, group string, detailed bool) (text string, err error) + func (c *Configs) Load(filename string) (err error) + func (c *Configs) LoadAllFromEnv() + func (c *Configs) LoadFromEnv(group, name string) (err error) + func (c *Configs) MarshalJSON() ([]byte, error) + func (c *Configs) Save(filename string) (err error) + func (c *Configs) UnmarshalJSON(bytes []byte) error + type TypeGroup struct + Name string + type Types []types.Item + func (t Types) Len() int + func (t Types) Less(i, j int) bool + func (t Types) Swap(i, j int) + type TypesGrouped []TypeGroup + func (t TypesGrouped) Len() int + func (t TypesGrouped) Less(i, j int) bool + func (t TypesGrouped) Swap(i, j int)