utils

package
v0.0.0-...-bd774c8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanTag

func CleanTag(value string) string

func DerefTypeOf

func DerefTypeOf(value interface{}) reflect.Type

func DerefValueOf

func DerefValueOf(value interface{}) reflect.Value

func InstantiateSliceElement

func InstantiateSliceElement[T any](value *[]T) *T

func IsInterface

func IsInterface(value reflect.Value) bool

func IsMap

func IsMap(value reflect.Value) bool

func IsNil

func IsNil(value reflect.Value) bool

func IsPointer

func IsPointer(value reflect.Value) bool

func IsSlice

func IsSlice(value reflect.Value) bool

func IsStruct

func IsStruct(value reflect.Value) bool

func MapCopy

func MapCopy[K comparable, V any](value map[K]V) map[K]V

func MapSlice

func MapSlice[K comparable, V any](slice []V, keyHandler func(element V) K) map[K][]V

func PointerOf

func PointerOf[T any](value T) *T

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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