msg

package
v2.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(value interface{}) bool

func Bytes

func Bytes(value interface{}) []byte

func Float

func Float(value interface{}) float64

func Int

func Int(value interface{}) int64

func Slice

func Slice(value interface{}) []interface{}

func String

func String(value interface{}) string

func StringMap

func StringMap(value interface{}) map[string]string

func Time

func Time(value interface{}) time.Time

func Uint

func Uint(value interface{}) uint64

Types

type Handler

type Handler[V Value] func() (V, error)

type Map

type Map map[string]interface{}

func MsgMap

func MsgMap(value interface{}) Map

func (Map) Bool

func (m Map) Bool(key string) bool

func (Map) Bytes

func (m Map) Bytes(key string) []byte

func (Map) Float

func (m Map) Float(key string) float64

func (Map) Float32s

func (m Map) Float32s(key string) []float32

func (Map) Float64s

func (m Map) Float64s(key string) []float64

func (Map) Int

func (m Map) Int(key string) int64

func (Map) Int16s

func (m Map) Int16s(key string) []int16

func (Map) Int32s

func (m Map) Int32s(key string) []int32

func (Map) Int64s

func (m Map) Int64s(key string) []int64

func (Map) Int8s

func (m Map) Int8s(key string) []int8

func (Map) Ints

func (m Map) Ints(key string) []int

func (Map) Map

func (m Map) Map(key string) Map

func (Map) Slice

func (m Map) Slice(key string) []interface{}

func (Map) String

func (m Map) String(key string) string

func (Map) Strings

func (m Map) Strings(key string) []string

func (Map) Time

func (m Map) Time(key string) time.Time

func (Map) Uint

func (m Map) Uint(key string) uint64

func (Map) Uint16s

func (m Map) Uint16s(key string) []uint16

func (Map) Uint32s

func (m Map) Uint32s(key string) []uint32

func (Map) Uint64s

func (m Map) Uint64s(key string) []uint64

func (Map) Uint8s

func (m Map) Uint8s(key string) []uint8

func (Map) Uints

func (m Map) Uints(key string) []uint

type Marshaler

type Marshaler interface {
	msgp.Marshaler
	msgp.Unmarshaler
}

type Value

type Value interface {
	int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 | bool | string | []byte | time.Time | []interface{} | map[string]string | map[string]interface{} | Map
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL