Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶
type Appender interface {
Append(val any) WriteMagicArray
}
type IMagicArray ¶ added in v0.0.7
type IZVal ¶ added in v0.0.7
type IZVal interface {
// Compare less=1 equal = 2 large =3 faild = 4
Int() (int, bool)
Uint() (uint, bool)
Compare(val IZVal) bool
Int64() (int64, bool)
Uint64() (uint64, bool)
Int32() (int32, bool)
Int16() (int16, bool)
Int8() (int8, bool)
Uint32() (uint32, bool)
Uint16() (uint16, bool)
Uint8() (uint8, bool)
String() string
ZVal() IZVal
Interface() interface{}
Arr() (IMagicArray, bool)
Kind() uint8
IsEmpty() bool
IsNil() bool
//IsSet is different with php, nil whil return true
IsSet() bool
Float32() (float32, bool)
Float64() (float64, bool)
Time() (time.Time, bool)
Bool() (bool, bool)
Bytes() []byte
MustInt() int
MustUint() uint
MustInt32() int32
MustInt16() int16
MustInt8() int8
MustUint32() uint32
MustUint16() uint16
MustUint8() uint8
MustArr() IMagicArray
MustInt64() int64
MustUint64() uint64
MustFloat32() float32
MustFloat64() float64
MustTime() time.Time
MustBool() bool
}
type JsonOpt ¶ added in v0.0.7
type JsonOpt func(*JsonOptInfo)
type JsonOptInfo ¶ added in v0.0.7
type JsonOptInfo struct {
NameFilters []JsonOptFilter
ValueFilters []JsonOptFilter
DefaultTimeFormat string
Deep int
IndentSize int
}
func (*JsonOptInfo) TimeFormat ¶ added in v0.0.7
func (j *JsonOptInfo) TimeFormat() string
type KV ¶
type KV interface {
Keys() IMagicArray
Values() IMagicArray
IsKeys() bool
}
type Remover ¶
type Remover interface {
Remove(key any) (WriteMagicArray, error)
}
type Setter ¶
type Setter interface {
Set(key interface{}, val interface{}) WriteMagicArray
}
type WriteMagicArray ¶
type WriteMagicArray interface {
IMagicArray
Setter
Appender
Remover
}
type ZValTagSet ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.