Documentation ¶
Index ¶
- Constants
- func Files() []string
- type Map
- func (m *Map) Clear()
- func (m *Map) Get(key string) string
- func (m *Map) Keys() []string
- func (m *Map) Lookup(key string) (string, bool)
- func (m *Map) Merge(data *Map, overwrite bool)
- func (m *Map) MustGet(key string) string
- func (m *Map) Set(key, value string)
- func (m *Map) ToMap() map[string]string
- func (m *Map) ToSlice() []string
- func (m *Map) ToString() (string, error)
- func (m *Map) Unset(key string)
- type NamingConvention
Constants ¶
View Source
const Prefix = "KBC_"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map - abstraction for ENV variables. Keys are represented as uppercase string.
type NamingConvention ¶
type NamingConvention struct{}
func NewNamingConvention ¶
func NewNamingConvention() *NamingConvention
func (*NamingConvention) Replace ¶
func (*NamingConvention) Replace(flagName string) string
Replace converts flag name to ENV variable name for example "storage-api-host" -> "KBC_STORAGE_API_HOST".
Click to show internal directories.
Click to hide internal directories.