utils

package
v0.0.0-...-8fd61c5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 6 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(m, elem map[string]map[string]interface{}) map[string]map[string]interface{}

func AppendElem

func AppendElem(m map[string]map[string]interface{}, key string, elem map[string]interface{}) map[string]map[string]interface{}

func BoolPtr

func BoolPtr(value bool) *bool

func Contains

func Contains[T comparable](slice []T, target T) bool

func First

func First[T any](fst T, _ any) T

func GetArrayType

func GetArrayType(array interface{}) reflect.Type

func GetCurrentTimeMillis

func GetCurrentTimeMillis() int64

func Initialise

func Initialise(m map[string]map[string]interface{}, key string)

func IntPtr

func IntPtr(value int) *int

func IsZero

func IsZero(v reflect.Value) bool

func ReadStringUint16

func ReadStringUint16(s []byte) (uint16, error)

func ReadStringUint64

func ReadStringUint64(s []byte) (uint64, error)

func Second

func Second[T any](_ any, snd T) T

func StrPtr

func StrPtr(value string) *string

func Uint64Ptr

func Uint64Ptr(value uint64) *uint64

Types

type Uint64StringSlice

type Uint64StringSlice []uint64

func (Uint64StringSlice) MarshalJSON

func (slice Uint64StringSlice) MarshalJSON() ([]byte, error)

func (*Uint64StringSlice) UnmarshalJSON

func (slice *Uint64StringSlice) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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