Versions in this module Expand all Collapse all v1 v1.0.0 Aug 8, 2020 Changes in this version + func Add(sl interface{}, args ...interface{}) (changed bool) + func AddUniq(sl interface{}, args ...interface{}) (changed bool) + func Contains(sl interface{}, args ...interface{}) bool + func ContainsAll(sl interface{}, args ...interface{}) bool + func Delete(sl interface{}, args ...interface{}) (changed bool) + func Insert(sl interface{}, args ...interface{}) (changed bool) + func InsertAt(sl interface{}, pos int, args ...interface{}) (changed bool) + func InsertUniq(sl interface{}, args ...interface{}) (changed bool) + func Slice(sl interface{}) (out []interface{}) + func SliceOf(e []interface{}, t reflect.Type) (v reflect.Value, ok bool) + func SliceProperties(e interface{}) (v reflect.Value, t reflect.Type, ok bool) + type Map map[string]interface + func (m Map) Clone(deep ...bool) Map + func (m Map) Decode(r io.Reader) (Map, error) + func (m Map) Delete(keys ...string) Map + func (m Map) Encode(w io.Writer) error + func (m Map) EncodeHuman(w io.Writer) error + func (m Map) Exists(k string) bool + func (m Map) FormatBracket() Map + func (m Map) FormatDot() Map + func (m Map) Get(k string) interface{} + func (m Map) GetBool(k string) (out bool, ok bool) + func (m Map) GetBoolMap(k string) (out map[string]bool, ok bool) + func (m Map) GetBoolSlice(k string) (out []bool, ok bool) + func (m Map) GetFloat(k string) (out float64, ok bool) + func (m Map) GetFloatMap(k string) (out map[string]float64, ok bool) + func (m Map) GetFloatSlice(k string) (out []float64, ok bool) + func (m Map) GetInt(k string) (out int, ok bool) + func (m Map) GetIntMap(k string) (out map[string]int, ok bool) + func (m Map) GetIntSlice(k string) (out []int, ok bool) + func (m Map) GetMap(k string) (out Map, ok bool) + func (m Map) GetRecursive(keys ...string) (v interface{}, ok bool) + func (m Map) GetRecursiveBracket(k string) (interface{}, bool) + func (m Map) GetRecursiveDot(k string) (interface{}, bool) + func (m Map) GetSlice(k string) (out []interface{}, ok bool) + func (m Map) GetString(k string) (out string, ok bool) + func (m Map) GetStringMap(k string) (out map[string]string, ok bool) + func (m Map) GetStringSlice(k string) (out []string, ok bool) + func (m Map) GetUint(k string) (out uint, ok bool) + func (m Map) GetUintMap(k string) (out map[string]uint, ok bool) + func (m Map) GetUintSlice(k string) (out []uint, ok bool) + func (m Map) Is(k string, cb func(interface{}) bool) bool + func (m Map) IsBool(k string) bool + func (m Map) IsBoolMap(k string) bool + func (m Map) IsBoolSlice(k string) bool + func (m Map) IsFloat(k string) bool + func (m Map) IsFloatMap(k string) bool + func (m Map) IsFloatSlice(k string) bool + func (m Map) IsInt(k string) bool + func (m Map) IsIntMap(k string) bool + func (m Map) IsIntSlice(k string) bool + func (m Map) IsMap(k string) bool + func (m Map) IsSlice(k string) bool + func (m Map) IsString(k string) bool + func (m Map) IsStringMap(k string) bool + func (m Map) IsStringSlice(k string) bool + func (m Map) IsUint(k string) bool + func (m Map) IsUintMap(k string) bool + func (m Map) IsUintSlice(k string) bool + func (m Map) Parse(e interface{}, keys ...string) bool + func (m Map) ParseIfExact(e interface{}, keys ...string) bool + func (m Map) Set(k string, v interface{}) Map + func (m Map) SetIf(k string, v interface{}, cb func() bool) Map + func (m Map) SetIfNotExists(k string, v interface{}) Map + func (m Map) SetRecursive(v interface{}, keys ...string) Map + func (m Map) SetRecursiveBracket(k string, v interface{}) Map + func (m Map) SetRecursiveDot(k string, v interface{}) Map + func (m Map) ToBool(k string, def ...bool) (out bool) + func (m Map) ToBoolMap(k string, def ...map[string]bool) (out map[string]bool) + func (m Map) ToBoolSlice(k string, def ...bool) (out []bool) + func (m Map) ToFloat(k string, def ...float64) (out float64) + func (m Map) ToFloatMap(k string, def ...map[string]float64) (out map[string]float64) + func (m Map) ToFloatSlice(k string, def ...float64) (out []float64) + func (m Map) ToInt(k string, def ...int) (out int) + func (m Map) ToIntMap(k string, def ...map[string]int) (out map[string]int) + func (m Map) ToIntSlice(k string, def ...int) (out []int) + func (m Map) ToMap(k string, def ...Map) (out Map) + func (m Map) ToSlice(k string, def ...interface{}) (out []interface{}) + func (m Map) ToString(k string, def ...string) (out string) + func (m Map) ToStringMap(k string, def ...map[string]string) (out map[string]string) + func (m Map) ToStringSlice(k string, def ...string) (out []string) + func (m Map) ToUint(k string, def ...uint) (out uint) + func (m Map) ToUintMap(k string, def ...map[string]uint) (out map[string]uint) + func (m Map) ToUintSlice(k string, def ...uint) (out []uint) + func (m1 Map) Fusion(m2 Map) Map + type MapDecoder struct + func NewMapDecoder(r io.Reader) *MapDecoder + func (dec *MapDecoder) Decode() (m Map, err error) + func (dec *MapDecoder) DecodeSlice() (sl SliceMap, err error) + type MapEncoder struct + func NewMapEncoder(w io.Writer) *MapEncoder + func (enc *MapEncoder) Encode(m Map) error + func (enc *MapEncoder) EncodeSlice(sl SliceMap) error + func (enc *MapEncoder) SetEscapeHTML(on bool) + func (enc *MapEncoder) SetIndent(prefix, indent string) + type Set map[interface{}]bool + func (s Set) Add(args ...interface{}) Set + func (s Set) Contains(args ...interface{}) bool + func (s Set) ContainsAll(args ...interface{}) bool + func (s Set) Del(args ...interface{}) Set + func (s Set) Len() int + func (s Set) Slice() []interface{} + func NewSet(args ...interface{}) Set + func SliceToSet(e interface{}) (s Set, ok bool) + type SliceMap []Map + func (sl *SliceMap) Add(maps ...Map) SliceMap + func (sl *SliceMap) Decode(r io.Reader) (SliceMap, error) + func (sl *SliceMap) Insert(maps ...Map) SliceMap + func (sl SliceMap) Encode(w io.Writer) error + func (sl SliceMap) EncodeHuman(w io.Writer) error Other modules containing this package framagit.org/benjamin.vaudour/collection/v2