Versions in this module Expand all Collapse all v0 v0.1.1 Mar 8, 2025 v0.1.0 Jun 14, 2024 Changes in this version + type Context map[string]interface + func (c Context) Apply(contexts ...Context) + func (c Context) ApplySpecific(contexts ...Context) + func (c Context) AsDeepKeyed() (out Context) + func (c Context) Bool(key string, def ...bool) bool + func (c Context) Boolean(key string) (value, ok bool) + func (c Context) Bytes(key string, def ...[]byte) []byte + func (c Context) CamelizeKeys() + func (c Context) Context(key string) (ctx Context) + func (c Context) Copy() (ctx Context) + func (c Context) DeepKeys() (keys []string) + func (c Context) DefaultStrings(key string, def ...[]string) []string + func (c Context) Delete(key string) (deleted bool) + func (c Context) DeleteKeys(keys ...string) + func (c Context) Empty() (empty bool) + func (c Context) FirstString(key string) (value string, ok bool) + func (c Context) Float64(key string, def ...float64) float64 + func (c Context) Get(key string) (value interface{}) + func (c Context) GetKV(key string) (k string, v interface{}) + func (c Context) Has(key string) (present bool) + func (c Context) HasExact(key string) (present bool) + func (c Context) Int(key string, def ...int) int + func (c Context) Int64(key string, def ...int64) int64 + func (c Context) KebabKeys() + func (c Context) Keys() (keys []string) + func (c Context) Len() (count int) + func (c Context) LowerCamelizeKeys() + func (c Context) MatchQL(query string) (matched bool, err error) + func (c Context) PruneEmpty() (pruned Context) + func (c Context) Select(keys ...string) (selected map[string]interface{}) + func (c Context) SelectStringValues(keys ...string) (selected []string) + func (c Context) SelectValues(keys ...string) (selected []interface{}) + func (c Context) Set(key string, value interface{}) Context + func (c Context) SetKV(key string, value interface{}) (err error) + func (c Context) SetSpecific(key string, value interface{}) Context + func (c Context) Slice(key string) (list []interface{}, ok bool) + func (c Context) String(key string, def ...string) string + func (c Context) StringOrStrings(key string) (values []string) + func (c Context) Strings(key string) (values []string) + func (c Context) Time(key string, def ...time.Time) time.Time + func (c Context) TimeDuration(key string, def ...time.Duration) time.Duration + func (c Context) ToEnviron() (out []string) + func (c Context) ToJSON() (data []byte, err error) + func (c Context) ToMap() (out map[string]interface{}) + func (c Context) ToStringMap() (out map[string]string) + func (c Context) ToTOML() (data []byte, err error) + func (c Context) ToYAML() (data []byte, err error) + func (c Context) Uint(key string, def ...uint) uint + func (c Context) Uint64(key string, def ...uint64) uint64 + func (c Context) ValueAsInt(key string, def ...int) int + func (c Context) ValueAsInt64(key string, def ...int64) int64 + func New() (ctx Context) + func NewFromMap(m map[string]interface{}) Context + func NewFromOsEnviron(environs ...[]string) (c Context) + func ParseJson(content string) (m Context, err error) + func ParseToml(content string) (m Context, err error) + func ParseYaml(content string) (m Context, err error) + type Contexts []Context + func (c Contexts) FindQL(query string) (found Contexts) + func (c Contexts) FirstInt64Value(key string) int64 + func (c Contexts) FirstIntValue(key string) int + func (c Contexts) FirstStringValue(key string) string + func (c Contexts) FirstValue(key string) interface{} + func (c Contexts) Int64Values(key string) (values []int64) + func (c Contexts) IntValues(key string) (values []int) + func (c Contexts) Len() (count int) + func (c Contexts) SelectStringValues(keys ...string) (values [][]string) + func (c Contexts) SelectValues(keys ...string) (values [][]interface{}) + func (c Contexts) StringValues(key string) (values []string) + func (c Contexts) Values(key string) (values []interface{})