utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArrayString added in v1.1.0

func GetArrayString(v []*string) []string

func GetBool added in v1.1.0

func GetBool(v *bool) bool

func GetBoolFalse added in v1.1.0

func GetBoolFalse(v *bool) bool

func GetBoolTrue added in v1.1.0

func GetBoolTrue(v *bool) bool

func GetFloat64 added in v1.1.0

func GetFloat64(v *float64) float64

func GetInt added in v1.1.0

func GetInt(v *int) int

func GetInt64 added in v1.1.0

func GetInt64(v *int64) int64

func GetJSON added in v1.1.0

func GetJSON(v *json.RawMessage) json.RawMessage

func GetString added in v1.1.0

func GetString(v *string) string

func GetUUID

func GetUUID() string

func IsUUID

func IsUUID(str string) bool

func LogStruct

func LogStruct(v interface{})

func StructToString

func StructToString(v interface{}) string

func ToNonPointer added in v1.1.0

func ToNonPointer[T comparable](v *T) T

func ToPointer added in v1.1.0

func ToPointer[T comparable](v T) *T

func ToUUID

func ToUUID(str string) (uuid.UUID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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