Documentation
¶
Index ¶
- Constants
- func IsBasicType(v interface{}) bool
- func ParseFloat32(v any) (r float32)
- func ParseFloat64(v any) float64
- func ParseInt32(v any) int32
- func ParseInt64(v any) int64
- func ParseString(v any) string
- func Sprintf(format any, args ...any) (text string)
- type Attach
- func (a *Attach) GetInt32() (r int32)
- func (a *Attach) GetInt64() (r int64)
- func (a *Attach) GetString() (r string)
- func (a *Attach) Marshal(v interface{}) error
- func (a *Attach) MarshalJSON() ([]byte, error)
- func (a *Attach) Unmarshal(i interface{}) error
- func (a *Attach) UnmarshalJSON(b2 []byte) error
- type Bitwise
- type Byte
- type Bytes
- type Message
- type Metadata
- func (meta Metadata) Clone() Metadata
- func (meta Metadata) Get(keys ...string) (string, bool)
- func (meta Metadata) GetFloat32(k string) float32
- func (meta Metadata) GetFloat64(k string) (r float64)
- func (meta Metadata) GetInt(k string) int
- func (meta Metadata) GetInt32(k string) int32
- func (meta Metadata) GetInt64(k string) int64
- func (meta Metadata) GetString(k string) (r string)
- func (meta Metadata) GetUint(k string) uint
- func (meta Metadata) GetUint64(k string) uint64
- func (meta Metadata) GetUit32(k string) uint32
- func (meta Metadata) Set(k string, v any)
- type Request
- type Values
- func (vs Values) Clone() Values
- func (vs Values) Get(k string) any
- func (vs Values) GetFloat32(k string) float32
- func (vs Values) GetFloat64(k string) (r float64)
- func (vs Values) GetInt(k string) int
- func (vs Values) GetInt32(k string) int32
- func (vs Values) GetInt64(k string) int64
- func (vs Values) GetString(k string) (r string)
- func (vs Values) Has(k string) bool
- func (vs Values) Key(k any) string
- func (vs Values) Marshal(k string, v any) (r any, err error)
- func (vs Values) MarshalJSON() ([]byte, error)
- func (vs Values) Merge(from Values, replace bool)
- func (vs Values) Range(f func(k string, v any) bool)
- func (vs Values) Set(k string, v any) any
- func (vs Values) Unmarshal(k string, i any) error
Constants ¶
View Source
const (
BytesEmptyJson = "null"
)
View Source
const MaxBitwiseUnit = 32
View Source
const MessageErrorCodeDefault int32 = 9999
Variables ¶
This section is empty.
Functions ¶
func IsBasicType ¶ added in v1.4.0
func IsBasicType(v interface{}) bool
func ParseFloat32 ¶ added in v1.5.3
func ParseFloat64 ¶ added in v1.1.0
func ParseInt32 ¶ added in v1.2.0
func ParseInt64 ¶ added in v1.1.0
func ParseString ¶ added in v1.1.0
Types ¶
type Bytes ¶ added in v0.0.2
type Bytes []byte
func (*Bytes) MarshalJSON ¶ added in v0.0.2
func (*Bytes) UnmarshalJSON ¶ added in v0.0.2
type Metadata ¶ added in v1.2.0
func (Metadata) GetFloat32 ¶ added in v1.2.0
func (Metadata) GetFloat64 ¶ added in v1.2.0
type Values ¶
func (Values) GetFloat32 ¶
func (Values) GetFloat64 ¶
func (Values) MarshalJSON ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.