Versions in this module Expand all Collapse all v1 v1.1.8 Mar 2, 2022 Changes in this version + var Empty = Typed(nil) + var KeyNotFound = errors.New("Key not found") + type Typed map[string]interface + func (t Typed) Bool(key string) bool + func (t Typed) BoolIf(key string) (bool, bool) + func (t Typed) BoolMust(key string) bool + func (t Typed) BoolOr(key string, d bool) bool + func (t Typed) Bools(key string) []bool + func (t Typed) BoolsIf(key string) ([]bool, bool) + func (t Typed) BoolsOr(key string, d []bool) []bool + func (t Typed) Exists(key string) bool + func (t Typed) Float(key string) float64 + func (t Typed) FloatIf(key string) (float64, bool) + func (t Typed) FloatMust(key string) float64 + func (t Typed) FloatOr(key string, d float64) float64 + func (t Typed) Floats(key string) []float64 + func (t Typed) FloatsIf(key string) ([]float64, bool) + func (t Typed) FloatsOr(key string, d []float64) []float64 + func (t Typed) Int(key string) int + func (t Typed) IntIf(key string) (int, bool) + func (t Typed) IntMust(key string) int + func (t Typed) IntOr(key string, d int) int + func (t Typed) Interface(key string) interface{} + func (t Typed) InterfaceIf(key string) (interface{}, bool) + func (t Typed) InterfaceMust(key string) interface{} + func (t Typed) InterfaceOr(key string, d interface{}) interface{} + func (t Typed) Ints(key string) []int + func (t Typed) Ints64(key string) []int64 + func (t Typed) Ints64If(key string) ([]int64, bool) + func (t Typed) Ints64Or(key string, d []int64) []int64 + func (t Typed) IntsIf(key string) ([]int, bool) + func (t Typed) IntsOr(key string, d []int) []int + func (t Typed) Keys() []string + func (t Typed) Map(key string) map[string]interface{} + func (t Typed) MapIf(key string) (map[string]interface{}, bool) + func (t Typed) MapOr(key string, d map[string]interface{}) map[string]interface{} + func (t Typed) Maps(key string) []map[string]interface{} + func (t Typed) MustBytes(key string) []byte + func (t Typed) Object(key string) Typed + func (t Typed) ObjectIf(key string) (Typed, bool) + func (t Typed) ObjectMust(key string) Typed + func (t Typed) ObjectOr(key string, d map[string]interface{}) Typed + func (t Typed) Objects(key string) []Typed + func (t Typed) ObjectsIf(key string) ([]Typed, bool) + func (t Typed) ObjectsMust(key string) []Typed + func (t Typed) String(key string) string + func (t Typed) StringBool(key string) map[string]bool + func (t Typed) StringFloat(key string) map[string]float64 + func (t Typed) StringIf(key string) (string, bool) + func (t Typed) StringInt(key string) map[string]int + func (t Typed) StringMust(key string) string + func (t Typed) StringObject(key string) map[string]Typed + func (t Typed) StringOr(key string, d string) string + func (t Typed) StringString(key string) map[string]string + func (t Typed) Strings(key string) []string + func (t Typed) StringsIf(key string) ([]string, bool) + func (t Typed) StringsOr(key string, d []string) []string + func (t Typed) Time(key string) time.Time + func (t Typed) TimeIf(key string) (time.Time, bool) + func (t Typed) TimeMust(key string) time.Time + func (t Typed) TimeOr(key string, d time.Time) time.Time + func (t Typed) ToBytes(key string) ([]byte, error) + func Json(data []byte) (Typed, error) + func JsonArray(data []byte) ([]Typed, error) + func JsonFile(path string) (Typed, error) + func JsonFileArray(path string) ([]Typed, error) + func JsonReader(reader io.Reader) (Typed, error) + func JsonReaderArray(reader io.Reader) ([]Typed, error) + func JsonString(data string) (Typed, error) + func JsonStringArray(data string) ([]Typed, error) + func Must(data []byte) Typed + func New(m map[string]interface{}) Typed v1.1.7 May 26, 2015