Versions in this module Expand all Collapse all v2 v2.0.2 Jun 9, 2023 Changes in this version + var InvalidKeyErr = errors.New("invalid key") + var InvalidSliceIndexErr = errors.New("invalid slice index") + var KeyNotFoundErr = errors.New("not found key") + func GetBool(content []byte, key string) (bool, error) + func GetBoolSlice(content []byte, key string) ([]bool, error) + func GetBoolWithDefault(content []byte, key string, defaultVal bool) bool + func GetEverySlice(content []byte, key string) (interface{}, error) + func GetFloat(content []byte, key string) (float64, error) + func GetFloatSlice(content []byte, key string) ([]float64, error) + func GetFloatWithDefault(content []byte, key string, defaultVal float64) float64 + func GetInt(content []byte, key string) (int, error) + func GetIntSlice(content []byte, key string) ([]int, error) + func GetIntWithDefault(content []byte, key string, defaultVal int) int + func GetRawMessage(content []byte, key string) (json.RawMessage, error) + func GetString(content []byte, key string) (string, error) + func GetStringSlice(content []byte, key string) ([]string, error) + func GetStringWithDefault(content []byte, key string, defaultVal string) string Other modules containing this package github.com/aronlt/toolkit