Documentation
¶
Index ¶
- func Decode(data any, response any) error
- func DecodeMap[V any](data map[string]any, response map[int]V) error
- func DecodeSlice[V any](data []any, response []V) ([]V, error)
- func NewBool(b bool) *bool
- func NewFloat64(f float64) *float64
- func NewInt(i int) *int
- func NewString(s string) *string
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMap ¶
DecodeMap is a wrapper around mapstructure.WeakDecode for multiple values passed as a map[string]any
func DecodeSlice ¶
DecodeSlice is a wrapper around mapstructure.WeakDecode for multiple values passed as a []any - response must be a pointer to a slices
func NewFloat64 ¶
NewFloat64 creates a new float64 pointer from a float64 value.
Types ¶
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue is a generic queue implementation based on slices.
func NewQueueFromSlice ¶
NewQueueFromSlice creates a new queue from a slice.
Click to show internal directories.
Click to hide internal directories.