Versions in this module Expand all Collapse all v12 v12.1.9 Aug 12, 2022 Changes in this version + func GobEncode(store Store, w io.Writer) error + func GobEncodeEntry(entry Entry, w io.Writer) error + func GobSerialize(store Store) ([]byte, error) + func GobSerializeEntry(entry Entry) ([]byte, error) + type Entry struct + Key string + ValueRaw interface{} + func GobDecodeEntry(b []byte) (entry Entry, err error) + func (e Entry) BoolDefault(def bool) (bool, error) + func (e Entry) Float32Default(key string, def float32) (float32, error) + func (e Entry) Float64Default(def float64) (float64, error) + func (e Entry) GetByKindOrNil(k reflect.Kind) interface{} + func (e Entry) Int16Default(def int16) (int16, error) + func (e Entry) Int32Default(def int32) (int32, error) + func (e Entry) Int64Default(def int64) (int64, error) + func (e Entry) Int8Default(def int8) (int8, error) + func (e Entry) IntDefault(def int) (int, error) + func (e Entry) String() string + func (e Entry) StringDefault(def string) string + func (e Entry) StringTrim() string + func (e Entry) Uint16Default(def uint16) (uint16, error) + func (e Entry) Uint32Default(def uint32) (uint32, error) + func (e Entry) Uint64Default(def uint64) (uint64, error) + func (e Entry) Uint8Default(def uint8) (uint8, error) + func (e Entry) UintDefault(def uint) (uint, error) + func (e Entry) Value() interface{} + type ErrEntryNotFound struct + Key string + Kind reflect.Kind + func (e *ErrEntryNotFound) As(target interface{}) bool + func (e *ErrEntryNotFound) Error() string + type Store []Entry + func GobDecode(b []byte) (store Store, err error) + func (r *Store) Get(key string) interface{} + func (r *Store) GetBool(key string) (bool, error) + func (r *Store) GetBoolDefault(key string, def bool) bool + func (r *Store) GetDefault(key string, def interface{}) interface{} + func (r *Store) GetEntry(key string) (Entry, bool) + func (r *Store) GetEntryAt(index int) (Entry, bool) + func (r *Store) GetFloat64(key string) (float64, error) + func (r *Store) GetFloat64Default(key string, def float64) float64 + func (r *Store) GetInt(key string) (int, error) + func (r *Store) GetInt16(key string) (int16, error) + func (r *Store) GetInt16Default(key string, def int16) int16 + func (r *Store) GetInt32(key string) (int32, error) + func (r *Store) GetInt32Default(key string, def int32) int32 + func (r *Store) GetInt64(key string) (int64, error) + func (r *Store) GetInt64Default(key string, def int64) int64 + func (r *Store) GetInt8(key string) (int8, error) + func (r *Store) GetInt8Default(key string, def int8) int8 + func (r *Store) GetIntDefault(key string, def int) int + func (r *Store) GetString(key string) string + func (r *Store) GetStringDefault(key string, def string) string + func (r *Store) GetStringTrim(name string) string + func (r *Store) GetUint(key string) (uint, error) + func (r *Store) GetUint16(key string) (uint16, error) + func (r *Store) GetUint16Default(key string, def uint16) uint16 + func (r *Store) GetUint32(key string) (uint32, error) + func (r *Store) GetUint32Default(key string, def uint32) uint32 + func (r *Store) GetUint64(key string) (uint64, error) + func (r *Store) GetUint64Default(key string, def uint64) uint64 + func (r *Store) GetUint8(key string) (uint8, error) + func (r *Store) GetUint8Default(key string, def uint8) uint8 + func (r *Store) GetUintDefault(key string, def uint) uint + func (r *Store) Len() int + func (r *Store) Remove(key string) bool + func (r *Store) Reset() + func (r *Store) Save(key string, value interface{}, immutable bool) (Entry, bool) + func (r *Store) Set(key string, value interface{}) (Entry, bool) + func (r *Store) SetImmutable(key string, value interface{}) (Entry, bool) + func (r *Store) Visit(visitor func(key string, value interface{})) + func (r Store) Serialize() []byte + type ValueSetter interface + Set func(key string, newValue interface{}) (Entry, bool)