Documentation ¶
Overview ¶
Code generated by genfuncs; DO NOT EDIT.
Index ¶
- Constants
- type JSONCfg
- func (c *JSONCfg) Append(value any, keys ...any) error
- func (c *JSONCfg) AppendDefault(value any, keys ...any) error
- func (c *JSONCfg) Clear()
- func (c *JSONCfg) Default() error
- func (c *JSONCfg) Get(key ...any) any
- func (c *JSONCfg) GetArray(key ...any) []any
- func (c *JSONCfg) GetBool(key ...any) bool
- func (c *JSONCfg) GetBoolArray(key ...any) []bool
- func (c *JSONCfg) GetBoolMap(key ...any) map[string]bool
- func (c *JSONCfg) GetDiff(key ...any) any
- func (c *JSONCfg) GetDiffArray(key ...any) []any
- func (c *JSONCfg) GetDiffBool(key ...any) bool
- func (c *JSONCfg) GetDiffBoolArray(key ...any) []bool
- func (c *JSONCfg) GetDiffBoolMap(key ...any) map[string]bool
- func (c *JSONCfg) GetDiffFloat32(key ...any) float32
- func (c *JSONCfg) GetDiffFloat32Array(key ...any) []float32
- func (c *JSONCfg) GetDiffFloat32Map(key ...any) map[string]float32
- func (c *JSONCfg) GetDiffFloat64(key ...any) float64
- func (c *JSONCfg) GetDiffFloat64Array(key ...any) []float64
- func (c *JSONCfg) GetDiffFloat64Map(key ...any) map[string]float64
- func (c *JSONCfg) GetDiffInt(key ...any) int
- func (c *JSONCfg) GetDiffInt16(key ...any) int16
- func (c *JSONCfg) GetDiffInt16Array(key ...any) []int16
- func (c *JSONCfg) GetDiffInt16Map(key ...any) map[string]int16
- func (c *JSONCfg) GetDiffInt32(key ...any) int32
- func (c *JSONCfg) GetDiffInt32Array(key ...any) []int32
- func (c *JSONCfg) GetDiffInt32Map(key ...any) map[string]int32
- func (c *JSONCfg) GetDiffInt64(key ...any) int64
- func (c *JSONCfg) GetDiffInt64Array(key ...any) []int64
- func (c *JSONCfg) GetDiffInt64Map(key ...any) map[string]int64
- func (c *JSONCfg) GetDiffIntArray(key ...any) []int
- func (c *JSONCfg) GetDiffIntMap(key ...any) map[string]int
- func (c *JSONCfg) GetDiffMap(key ...any) map[string]any
- func (c *JSONCfg) GetDiffString(key ...any) string
- func (c *JSONCfg) GetDiffStringArray(key ...any) []string
- func (c *JSONCfg) GetDiffStringMap(key ...any) map[string]string
- func (c *JSONCfg) GetDiffUint(key ...any) uint
- func (c *JSONCfg) GetDiffUint16(key ...any) uint16
- func (c *JSONCfg) GetDiffUint16Array(key ...any) []uint16
- func (c *JSONCfg) GetDiffUint16Map(key ...any) map[string]uint16
- func (c *JSONCfg) GetDiffUint32(key ...any) uint32
- func (c *JSONCfg) GetDiffUint32Array(key ...any) []uint32
- func (c *JSONCfg) GetDiffUint32Map(key ...any) map[string]uint32
- func (c *JSONCfg) GetDiffUint64(key ...any) uint64
- func (c *JSONCfg) GetDiffUint64Array(key ...any) []uint64
- func (c *JSONCfg) GetDiffUint64Map(key ...any) map[string]uint64
- func (c *JSONCfg) GetDiffUintArray(key ...any) []uint
- func (c *JSONCfg) GetDiffUintMap(key ...any) map[string]uint
- func (c *JSONCfg) GetFloat32(key ...any) float32
- func (c *JSONCfg) GetFloat32Array(key ...any) []float32
- func (c *JSONCfg) GetFloat32Map(key ...any) map[string]float32
- func (c *JSONCfg) GetFloat64(key ...any) float64
- func (c *JSONCfg) GetFloat64Array(key ...any) []float64
- func (c *JSONCfg) GetFloat64Map(key ...any) map[string]float64
- func (c *JSONCfg) GetInt(key ...any) int
- func (c *JSONCfg) GetInt16(key ...any) int16
- func (c *JSONCfg) GetInt16Array(key ...any) []int16
- func (c *JSONCfg) GetInt16Map(key ...any) map[string]int16
- func (c *JSONCfg) GetInt32(key ...any) int32
- func (c *JSONCfg) GetInt32Array(key ...any) []int32
- func (c *JSONCfg) GetInt32Map(key ...any) map[string]int32
- func (c *JSONCfg) GetInt64(key ...any) int64
- func (c *JSONCfg) GetInt64Array(key ...any) []int64
- func (c *JSONCfg) GetInt64Map(key ...any) map[string]int64
- func (c *JSONCfg) GetIntArray(key ...any) []int
- func (c *JSONCfg) GetIntMap(key ...any) map[string]int
- func (c *JSONCfg) GetKeys(keys ...any) []string
- func (c *JSONCfg) GetMap(key ...any) map[string]any
- func (c *JSONCfg) GetString(key ...any) string
- func (c *JSONCfg) GetStringArray(key ...any) []string
- func (c *JSONCfg) GetStringMap(key ...any) map[string]string
- func (c *JSONCfg) GetUint(key ...any) uint
- func (c *JSONCfg) GetUint16(key ...any) uint16
- func (c *JSONCfg) GetUint16Array(key ...any) []uint16
- func (c *JSONCfg) GetUint16Map(key ...any) map[string]uint16
- func (c *JSONCfg) GetUint32(key ...any) uint32
- func (c *JSONCfg) GetUint32Array(key ...any) []uint32
- func (c *JSONCfg) GetUint32Map(key ...any) map[string]uint32
- func (c *JSONCfg) GetUint64(key ...any) uint64
- func (c *JSONCfg) GetUint64Array(key ...any) []uint64
- func (c *JSONCfg) GetUint64Map(key ...any) map[string]uint64
- func (c *JSONCfg) GetUintArray(key ...any) []uint
- func (c *JSONCfg) GetUintMap(key ...any) map[string]uint
- func (c *JSONCfg) HasKey(keys ...any) bool
- func (c *JSONCfg) MustGet(key ...any) (any, error)
- func (c *JSONCfg) MustGetArray(key ...any) ([]any, error)
- func (c *JSONCfg) MustGetBool(key ...any) (bool, error)
- func (c *JSONCfg) MustGetBoolArray(key ...any) ([]bool, error)
- func (c *JSONCfg) MustGetBoolMap(key ...any) (map[string]bool, error)
- func (c *JSONCfg) MustGetDiff(key ...any) (any, error)
- func (c *JSONCfg) MustGetDiffArray(key ...any) ([]any, error)
- func (c *JSONCfg) MustGetDiffBool(key ...any) (bool, error)
- func (c *JSONCfg) MustGetDiffBoolArray(key ...any) ([]bool, error)
- func (c *JSONCfg) MustGetDiffBoolMap(key ...any) (map[string]bool, error)
- func (c *JSONCfg) MustGetDiffFloat32(key ...any) (float32, error)
- func (c *JSONCfg) MustGetDiffFloat32Array(key ...any) ([]float32, error)
- func (c *JSONCfg) MustGetDiffFloat32Map(key ...any) (map[string]float32, error)
- func (c *JSONCfg) MustGetDiffFloat64(key ...any) (float64, error)
- func (c *JSONCfg) MustGetDiffFloat64Array(key ...any) ([]float64, error)
- func (c *JSONCfg) MustGetDiffFloat64Map(key ...any) (map[string]float64, error)
- func (c *JSONCfg) MustGetDiffInt(key ...any) (int, error)
- func (c *JSONCfg) MustGetDiffInt16(key ...any) (int16, error)
- func (c *JSONCfg) MustGetDiffInt16Array(key ...any) ([]int16, error)
- func (c *JSONCfg) MustGetDiffInt16Map(key ...any) (map[string]int16, error)
- func (c *JSONCfg) MustGetDiffInt32(key ...any) (int32, error)
- func (c *JSONCfg) MustGetDiffInt32Array(key ...any) ([]int32, error)
- func (c *JSONCfg) MustGetDiffInt32Map(key ...any) (map[string]int32, error)
- func (c *JSONCfg) MustGetDiffInt64(key ...any) (int64, error)
- func (c *JSONCfg) MustGetDiffInt64Array(key ...any) ([]int64, error)
- func (c *JSONCfg) MustGetDiffInt64Map(key ...any) (map[string]int64, error)
- func (c *JSONCfg) MustGetDiffIntArray(key ...any) ([]int, error)
- func (c *JSONCfg) MustGetDiffIntMap(key ...any) (map[string]int, error)
- func (c *JSONCfg) MustGetDiffMap(key ...any) (map[string]any, error)
- func (c *JSONCfg) MustGetDiffString(key ...any) (string, error)
- func (c *JSONCfg) MustGetDiffStringArray(key ...any) ([]string, error)
- func (c *JSONCfg) MustGetDiffStringMap(key ...any) (map[string]string, error)
- func (c *JSONCfg) MustGetDiffUint(key ...any) (uint, error)
- func (c *JSONCfg) MustGetDiffUint16(key ...any) (uint16, error)
- func (c *JSONCfg) MustGetDiffUint16Array(key ...any) ([]uint16, error)
- func (c *JSONCfg) MustGetDiffUint16Map(key ...any) (map[string]uint16, error)
- func (c *JSONCfg) MustGetDiffUint32(key ...any) (uint32, error)
- func (c *JSONCfg) MustGetDiffUint32Array(key ...any) ([]uint32, error)
- func (c *JSONCfg) MustGetDiffUint32Map(key ...any) (map[string]uint32, error)
- func (c *JSONCfg) MustGetDiffUint64(key ...any) (uint64, error)
- func (c *JSONCfg) MustGetDiffUint64Array(key ...any) ([]uint64, error)
- func (c *JSONCfg) MustGetDiffUint64Map(key ...any) (map[string]uint64, error)
- func (c *JSONCfg) MustGetDiffUintArray(key ...any) ([]uint, error)
- func (c *JSONCfg) MustGetDiffUintMap(key ...any) (map[string]uint, error)
- func (c *JSONCfg) MustGetFloat32(key ...any) (float32, error)
- func (c *JSONCfg) MustGetFloat32Array(key ...any) ([]float32, error)
- func (c *JSONCfg) MustGetFloat32Map(key ...any) (map[string]float32, error)
- func (c *JSONCfg) MustGetFloat64(key ...any) (float64, error)
- func (c *JSONCfg) MustGetFloat64Array(key ...any) ([]float64, error)
- func (c *JSONCfg) MustGetFloat64Map(key ...any) (map[string]float64, error)
- func (c *JSONCfg) MustGetInt(key ...any) (int, error)
- func (c *JSONCfg) MustGetInt16(key ...any) (int16, error)
- func (c *JSONCfg) MustGetInt16Array(key ...any) ([]int16, error)
- func (c *JSONCfg) MustGetInt16Map(key ...any) (map[string]int16, error)
- func (c *JSONCfg) MustGetInt32(key ...any) (int32, error)
- func (c *JSONCfg) MustGetInt32Array(key ...any) ([]int32, error)
- func (c *JSONCfg) MustGetInt32Map(key ...any) (map[string]int32, error)
- func (c *JSONCfg) MustGetInt64(key ...any) (int64, error)
- func (c *JSONCfg) MustGetInt64Array(key ...any) ([]int64, error)
- func (c *JSONCfg) MustGetInt64Map(key ...any) (map[string]int64, error)
- func (c *JSONCfg) MustGetIntArray(key ...any) ([]int, error)
- func (c *JSONCfg) MustGetIntMap(key ...any) (map[string]int, error)
- func (c *JSONCfg) MustGetKeys(keys ...any) ([]string, error)
- func (c *JSONCfg) MustGetMap(key ...any) (map[string]any, error)
- func (c *JSONCfg) MustGetString(key ...any) (string, error)
- func (c *JSONCfg) MustGetStringArray(key ...any) ([]string, error)
- func (c *JSONCfg) MustGetStringMap(key ...any) (map[string]string, error)
- func (c *JSONCfg) MustGetUint(key ...any) (uint, error)
- func (c *JSONCfg) MustGetUint16(key ...any) (uint16, error)
- func (c *JSONCfg) MustGetUint16Array(key ...any) ([]uint16, error)
- func (c *JSONCfg) MustGetUint16Map(key ...any) (map[string]uint16, error)
- func (c *JSONCfg) MustGetUint32(key ...any) (uint32, error)
- func (c *JSONCfg) MustGetUint32Array(key ...any) ([]uint32, error)
- func (c *JSONCfg) MustGetUint32Map(key ...any) (map[string]uint32, error)
- func (c *JSONCfg) MustGetUint64(key ...any) (uint64, error)
- func (c *JSONCfg) MustGetUint64Array(key ...any) ([]uint64, error)
- func (c *JSONCfg) MustGetUint64Map(key ...any) (map[string]uint64, error)
- func (c *JSONCfg) MustGetUintArray(key ...any) ([]uint, error)
- func (c *JSONCfg) MustGetUintMap(key ...any) (map[string]uint, error)
- func (c *JSONCfg) Reset() error
- func (c *JSONCfg) Save() error
- func (c *JSONCfg) SaveDefault() error
- func (c *JSONCfg) SaveDiff() error
- func (c *JSONCfg) Set(value any, keys ...any) error
- func (c *JSONCfg) SetDefault(value any, keys ...any) error
- func (c *JSONCfg) String() string
Constants ¶
const Version string = "1.6.13"
Version is the package version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONCfg ¶
type JSONCfg struct { File string // contains filtered or unexported fields }
JSONCfg is a struct that handles a JSON formatted config file on disk. It contains the filename, the running config, the default config, and any changes from default. If autosave is true, changes are written to disk immediately.
func New ¶
New will return a pointer to a new JSONCfg instance that requires manual calls to Save() to write the config to disk.
func NewAutosave ¶
NewAutosave will return a pointer to a new JSONCfg instance that is immediately written to disk on change.
func (*JSONCfg) Append ¶
Append will append the specified value to the specified key in the config, if it is an array.
func (*JSONCfg) AppendDefault ¶
AppendDefault will append the specified value to the specified key in the config, if it is an array. It will not write changes to disk ever and is intended to be used prior to SaveDefault().
func (*JSONCfg) GetBoolArray ¶
GetBoolArray will return an array for the specified key(s) as a []bool.
func (*JSONCfg) GetBoolMap ¶
GetBoolMap will return a map for the specified key(s) as a map[string]bool.
func (*JSONCfg) GetDiffArray ¶
GetDiffArray will return an array for the specified key(s) as a []any.
func (*JSONCfg) GetDiffBool ¶
GetDiffBool will return the value for the specified key(s) as a bool.
func (*JSONCfg) GetDiffBoolArray ¶
GetDiffBoolArray will return an array for the specified key(s) as a []bool.
func (*JSONCfg) GetDiffBoolMap ¶
GetDiffBoolMap will return a map for the specified key(s) as a map[string]bool.
func (*JSONCfg) GetDiffFloat32 ¶
GetDiffFloat32 will return the value for the specified key(s) as a float32.
func (*JSONCfg) GetDiffFloat32Array ¶
GetDiffFloat32Array will return an array for the specified key(s) as a []float32.
func (*JSONCfg) GetDiffFloat32Map ¶
GetDiffFloat32Map will return a map for the specified key(s) as a map[string]float32.
func (*JSONCfg) GetDiffFloat64 ¶
GetDiffFloat64 will return the value for the specified key(s) as a float64.
func (*JSONCfg) GetDiffFloat64Array ¶
GetDiffFloat64Array will return an array for the specified key(s) as a []float64.
func (*JSONCfg) GetDiffFloat64Map ¶
GetDiffFloat64Map will return a map for the specified key(s) as a map[string]float64.
func (*JSONCfg) GetDiffInt ¶
GetDiffInt will return the value for the specified key(s) as a int.
func (*JSONCfg) GetDiffInt16 ¶
GetDiffInt16 will return the value for the specified key(s) as a int16.
func (*JSONCfg) GetDiffInt16Array ¶
GetDiffInt16Array will return an array for the specified key(s) as a []int16.
func (*JSONCfg) GetDiffInt16Map ¶
GetDiffInt16Map will return a map for the specified key(s) as a map[string]int16.
func (*JSONCfg) GetDiffInt32 ¶
GetDiffInt32 will return the value for the specified key(s) as a int32.
func (*JSONCfg) GetDiffInt32Array ¶
GetDiffInt32Array will return an array for the specified key(s) as a []int32.
func (*JSONCfg) GetDiffInt32Map ¶
GetDiffInt32Map will return a map for the specified key(s) as a map[string]int32.
func (*JSONCfg) GetDiffInt64 ¶
GetDiffInt64 will return the value for the specified key(s) as a int64.
func (*JSONCfg) GetDiffInt64Array ¶
GetDiffInt64Array will return an array for the specified key(s) as a []int64.
func (*JSONCfg) GetDiffInt64Map ¶
GetDiffInt64Map will return a map for the specified key(s) as a map[string]int64.
func (*JSONCfg) GetDiffIntArray ¶
GetDiffIntArray will return an array for the specified key(s) as a []int.
func (*JSONCfg) GetDiffIntMap ¶
GetDiffIntMap will return a map for the specified key(s) as a map[string]int.
func (*JSONCfg) GetDiffMap ¶
GetDiffMap will return a map for the specified key(s) as a map[string]any.
func (*JSONCfg) GetDiffString ¶
GetDiffString will return the value for the specified key(s) as a string.
func (*JSONCfg) GetDiffStringArray ¶
GetDiffStringArray will return an array for the specified key(s) as a []string.
func (*JSONCfg) GetDiffStringMap ¶
GetDiffStringMap will return a map for the specified key(s) as a map[string]string.
func (*JSONCfg) GetDiffUint ¶
GetDiffUint will return the value for the specified key(s) as a uint.
func (*JSONCfg) GetDiffUint16 ¶
GetDiffUint16 will return the value for the specified key(s) as a uint16.
func (*JSONCfg) GetDiffUint16Array ¶
GetDiffUint16Array will return an array for the specified key(s) as a []uint16.
func (*JSONCfg) GetDiffUint16Map ¶
GetDiffUint16Map will return a map for the specified key(s) as a map[string]uint16.
func (*JSONCfg) GetDiffUint32 ¶
GetDiffUint32 will return the value for the specified key(s) as a uint32.
func (*JSONCfg) GetDiffUint32Array ¶
GetDiffUint32Array will return an array for the specified key(s) as a []uint32.
func (*JSONCfg) GetDiffUint32Map ¶
GetDiffUint32Map will return a map for the specified key(s) as a map[string]uint32.
func (*JSONCfg) GetDiffUint64 ¶
GetDiffUint64 will return the value for the specified key(s) as a uint64.
func (*JSONCfg) GetDiffUint64Array ¶
GetDiffUint64Array will return an array for the specified key(s) as a []uint64.
func (*JSONCfg) GetDiffUint64Map ¶
GetDiffUint64Map will return a map for the specified key(s) as a map[string]uint64.
func (*JSONCfg) GetDiffUintArray ¶
GetDiffUintArray will return an array for the specified key(s) as a []uint.
func (*JSONCfg) GetDiffUintMap ¶
GetDiffUintMap will return a map for the specified key(s) as a map[string]uint.
func (*JSONCfg) GetFloat32 ¶
GetFloat32 will return the value for the specified key(s) as a float32.
func (*JSONCfg) GetFloat32Array ¶
GetFloat32Array will return an array for the specified key(s) as a []float32.
func (*JSONCfg) GetFloat32Map ¶
GetFloat32Map will return a map for the specified key(s) as a map[string]float32.
func (*JSONCfg) GetFloat64 ¶
GetFloat64 will return the value for the specified key(s) as a float64.
func (*JSONCfg) GetFloat64Array ¶
GetFloat64Array will return an array for the specified key(s) as a []float64.
func (*JSONCfg) GetFloat64Map ¶
GetFloat64Map will return a map for the specified key(s) as a map[string]float64.
func (*JSONCfg) GetInt16Array ¶
GetInt16Array will return an array for the specified key(s) as a []int16.
func (*JSONCfg) GetInt16Map ¶
GetInt16Map will return a map for the specified key(s) as a map[string]int16.
func (*JSONCfg) GetInt32Array ¶
GetInt32Array will return an array for the specified key(s) as a []int32.
func (*JSONCfg) GetInt32Map ¶
GetInt32Map will return a map for the specified key(s) as a map[string]int32.
func (*JSONCfg) GetInt64Array ¶
GetInt64Array will return an array for the specified key(s) as a []int64.
func (*JSONCfg) GetInt64Map ¶
GetInt64Map will return a map for the specified key(s) as a map[string]int64.
func (*JSONCfg) GetIntArray ¶
GetIntArray will return an array for the specified key(s) as a []int.
func (*JSONCfg) GetIntMap ¶
GetIntMap will return a map for the specified key(s) as a map[string]int.
func (*JSONCfg) GetKeys ¶
GetKeys will return a list of valid keys if the specified key returns an array or map.
func (*JSONCfg) GetStringArray ¶
GetStringArray will return an array for the specified key(s) as a []string.
func (*JSONCfg) GetStringMap ¶
GetStringMap will return a map for the specified key(s) as a map[string]string.
func (*JSONCfg) GetUint16Array ¶
GetUint16Array will return an array for the specified key(s) as a []uint16.
func (*JSONCfg) GetUint16Map ¶
GetUint16Map will return a map for the specified key(s) as a map[string]uint16.
func (*JSONCfg) GetUint32Array ¶
GetUint32Array will return an array for the specified key(s) as a []uint32.
func (*JSONCfg) GetUint32Map ¶
GetUint32Map will return a map for the specified key(s) as a map[string]uint32.
func (*JSONCfg) GetUint64Array ¶
GetUint64Array will return an array for the specified key(s) as a []uint64.
func (*JSONCfg) GetUint64Map ¶
GetUint64Map will return a map for the specified key(s) as a map[string]uint64.
func (*JSONCfg) GetUintArray ¶
GetUintArray will return an array for the specified key(s) as a []uint.
func (*JSONCfg) GetUintMap ¶
GetUintMap will return a map for the specified key(s) as a map[string]uint.
func (*JSONCfg) HasKey ¶
HasKey will return true if the config has the specified key, false otherwise.
func (*JSONCfg) MustGetArray ¶
MustGetArray will return an array for the specified key(s) as a []any.
func (*JSONCfg) MustGetBool ¶
MustGetBool will return the value for the specified key(s) as a bool.
func (*JSONCfg) MustGetBoolArray ¶
MustGetBoolArray will return an array for the specified key(s) as a []bool.
func (*JSONCfg) MustGetBoolMap ¶
MustGetBoolMap will return a map for the specified key(s) as a map[string]bool.
func (*JSONCfg) MustGetDiff ¶
MustGetDiff will return the value for the specified key(s) as a any.
func (*JSONCfg) MustGetDiffArray ¶
MustGetDiffArray will return an array for the specified key(s) as a []any.
func (*JSONCfg) MustGetDiffBool ¶
MustGetDiffBool will return the value for the specified key(s) as a bool.
func (*JSONCfg) MustGetDiffBoolArray ¶
MustGetDiffBoolArray will return an array for the specified key(s) as a []bool.
func (*JSONCfg) MustGetDiffBoolMap ¶
MustGetDiffBoolMap will return a map for the specified key(s) as a map[string]bool.
func (*JSONCfg) MustGetDiffFloat32 ¶
MustGetDiffFloat32 will return the value for the specified key(s) as a float32.
func (*JSONCfg) MustGetDiffFloat32Array ¶
MustGetDiffFloat32Array will return an array for the specified key(s) as a []float32.
func (*JSONCfg) MustGetDiffFloat32Map ¶
MustGetDiffFloat32Map will return a map for the specified key(s) as a map[string]float32.
func (*JSONCfg) MustGetDiffFloat64 ¶
MustGetDiffFloat64 will return the value for the specified key(s) as a float64.
func (*JSONCfg) MustGetDiffFloat64Array ¶
MustGetDiffFloat64Array will return an array for the specified key(s) as a []float64.
func (*JSONCfg) MustGetDiffFloat64Map ¶
MustGetDiffFloat64Map will return a map for the specified key(s) as a map[string]float64.
func (*JSONCfg) MustGetDiffInt ¶
MustGetDiffInt will return the value for the specified key(s) as a int.
func (*JSONCfg) MustGetDiffInt16 ¶
MustGetDiffInt16 will return the value for the specified key(s) as a int16.
func (*JSONCfg) MustGetDiffInt16Array ¶
MustGetDiffInt16Array will return an array for the specified key(s) as a []int16.
func (*JSONCfg) MustGetDiffInt16Map ¶
MustGetDiffInt16Map will return a map for the specified key(s) as a map[string]int16.
func (*JSONCfg) MustGetDiffInt32 ¶
MustGetDiffInt32 will return the value for the specified key(s) as a int32.
func (*JSONCfg) MustGetDiffInt32Array ¶
MustGetDiffInt32Array will return an array for the specified key(s) as a []int32.
func (*JSONCfg) MustGetDiffInt32Map ¶
MustGetDiffInt32Map will return a map for the specified key(s) as a map[string]int32.
func (*JSONCfg) MustGetDiffInt64 ¶
MustGetDiffInt64 will return the value for the specified key(s) as a int64.
func (*JSONCfg) MustGetDiffInt64Array ¶
MustGetDiffInt64Array will return an array for the specified key(s) as a []int64.
func (*JSONCfg) MustGetDiffInt64Map ¶
MustGetDiffInt64Map will return a map for the specified key(s) as a map[string]int64.
func (*JSONCfg) MustGetDiffIntArray ¶
MustGetDiffIntArray will return an array for the specified key(s) as a []int.
func (*JSONCfg) MustGetDiffIntMap ¶
MustGetDiffIntMap will return a map for the specified key(s) as a map[string]int.
func (*JSONCfg) MustGetDiffMap ¶
MustGetDiffMap will return a map for the specified key(s) as a map[string]any.
func (*JSONCfg) MustGetDiffString ¶
MustGetDiffString will return the value for the specified key(s) as a string.
func (*JSONCfg) MustGetDiffStringArray ¶
MustGetDiffStringArray will return an array for the specified key(s) as a []string.
func (*JSONCfg) MustGetDiffStringMap ¶
MustGetDiffStringMap will return a map for the specified key(s) as a map[string]string.
func (*JSONCfg) MustGetDiffUint ¶
MustGetDiffUint will return the value for the specified key(s) as a uint.
func (*JSONCfg) MustGetDiffUint16 ¶
MustGetDiffUint16 will return the value for the specified key(s) as a uint16.
func (*JSONCfg) MustGetDiffUint16Array ¶
MustGetDiffUint16Array will return an array for the specified key(s) as a []uint16.
func (*JSONCfg) MustGetDiffUint16Map ¶
MustGetDiffUint16Map will return a map for the specified key(s) as a map[string]uint16.
func (*JSONCfg) MustGetDiffUint32 ¶
MustGetDiffUint32 will return the value for the specified key(s) as a uint32.
func (*JSONCfg) MustGetDiffUint32Array ¶
MustGetDiffUint32Array will return an array for the specified key(s) as a []uint32.
func (*JSONCfg) MustGetDiffUint32Map ¶
MustGetDiffUint32Map will return a map for the specified key(s) as a map[string]uint32.
func (*JSONCfg) MustGetDiffUint64 ¶
MustGetDiffUint64 will return the value for the specified key(s) as a uint64.
func (*JSONCfg) MustGetDiffUint64Array ¶
MustGetDiffUint64Array will return an array for the specified key(s) as a []uint64.
func (*JSONCfg) MustGetDiffUint64Map ¶
MustGetDiffUint64Map will return a map for the specified key(s) as a map[string]uint64.
func (*JSONCfg) MustGetDiffUintArray ¶
MustGetDiffUintArray will return an array for the specified key(s) as a []uint.
func (*JSONCfg) MustGetDiffUintMap ¶
MustGetDiffUintMap will return a map for the specified key(s) as a map[string]uint.
func (*JSONCfg) MustGetFloat32 ¶
MustGetFloat32 will return the value for the specified key(s) as a float32.
func (*JSONCfg) MustGetFloat32Array ¶
MustGetFloat32Array will return an array for the specified key(s) as a []float32.
func (*JSONCfg) MustGetFloat32Map ¶
MustGetFloat32Map will return a map for the specified key(s) as a map[string]float32.
func (*JSONCfg) MustGetFloat64 ¶
MustGetFloat64 will return the value for the specified key(s) as a float64.
func (*JSONCfg) MustGetFloat64Array ¶
MustGetFloat64Array will return an array for the specified key(s) as a []float64.
func (*JSONCfg) MustGetFloat64Map ¶
MustGetFloat64Map will return a map for the specified key(s) as a map[string]float64.
func (*JSONCfg) MustGetInt ¶
MustGetInt will return the value for the specified key(s) as a int.
func (*JSONCfg) MustGetInt16 ¶
MustGetInt16 will return the value for the specified key(s) as a int16.
func (*JSONCfg) MustGetInt16Array ¶
MustGetInt16Array will return an array for the specified key(s) as a []int16.
func (*JSONCfg) MustGetInt16Map ¶
MustGetInt16Map will return a map for the specified key(s) as a map[string]int16.
func (*JSONCfg) MustGetInt32 ¶
MustGetInt32 will return the value for the specified key(s) as a int32.
func (*JSONCfg) MustGetInt32Array ¶
MustGetInt32Array will return an array for the specified key(s) as a []int32.
func (*JSONCfg) MustGetInt32Map ¶
MustGetInt32Map will return a map for the specified key(s) as a map[string]int32.
func (*JSONCfg) MustGetInt64 ¶
MustGetInt64 will return the value for the specified key(s) as a int64.
func (*JSONCfg) MustGetInt64Array ¶
MustGetInt64Array will return an array for the specified key(s) as a []int64.
func (*JSONCfg) MustGetInt64Map ¶
MustGetInt64Map will return a map for the specified key(s) as a map[string]int64.
func (*JSONCfg) MustGetIntArray ¶
MustGetIntArray will return an array for the specified key(s) as a []int.
func (*JSONCfg) MustGetIntMap ¶
MustGetIntMap will return a map for the specified key(s) as a map[string]int.
func (*JSONCfg) MustGetKeys ¶
MustGetKeys will return a list of valid keys if the specified key returns an array or map.
func (*JSONCfg) MustGetMap ¶
MustGetMap will return a map for the specified key(s) as a map[string]any.
func (*JSONCfg) MustGetString ¶
MustGetString will return the value for the specified key(s) as a string.
func (*JSONCfg) MustGetStringArray ¶
MustGetStringArray will return an array for the specified key(s) as a []string.
func (*JSONCfg) MustGetStringMap ¶
MustGetStringMap will return a map for the specified key(s) as a map[string]string.
func (*JSONCfg) MustGetUint ¶
MustGetUint will return the value for the specified key(s) as a uint.
func (*JSONCfg) MustGetUint16 ¶
MustGetUint16 will return the value for the specified key(s) as a uint16.
func (*JSONCfg) MustGetUint16Array ¶
MustGetUint16Array will return an array for the specified key(s) as a []uint16.
func (*JSONCfg) MustGetUint16Map ¶
MustGetUint16Map will return a map for the specified key(s) as a map[string]uint16.
func (*JSONCfg) MustGetUint32 ¶
MustGetUint32 will return the value for the specified key(s) as a uint32.
func (*JSONCfg) MustGetUint32Array ¶
MustGetUint32Array will return an array for the specified key(s) as a []uint32.
func (*JSONCfg) MustGetUint32Map ¶
MustGetUint32Map will return a map for the specified key(s) as a map[string]uint32.
func (*JSONCfg) MustGetUint64 ¶
MustGetUint64 will return the value for the specified key(s) as a uint64.
func (*JSONCfg) MustGetUint64Array ¶
MustGetUint64Array will return an array for the specified key(s) as a []uint64.
func (*JSONCfg) MustGetUint64Map ¶
MustGetUint64Map will return a map for the specified key(s) as a map[string]uint64.
func (*JSONCfg) MustGetUintArray ¶
MustGetUintArray will return an array for the specified key(s) as a []uint.
func (*JSONCfg) MustGetUintMap ¶
MustGetUintMap will return a map for the specified key(s) as a map[string]uint.
func (*JSONCfg) SaveDefault ¶
SaveDefault will save the default map for use by Default().
func (*JSONCfg) SetDefault ¶
SetDefault will set the specified value for the specified key in the config. It will not write changes to disk ever and is intended to be used prior to SaveDefault().