samehada_util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChoiceValFromMap

func ChoiceValFromMap[T int32 | float32 | string, V int32 | float32 | string](m map[T]V) T

func FileExists

func FileExists(filename string) bool

func GetPonterOfValue

func GetPonterOfValue(value types.Value) *types.Value

func GetRandomPrimitiveVal

func GetRandomPrimitiveVal[T int32 | float32 | string](keyType types.TypeID, maxVal interface{}) T

maxVal is *int32 when get int32 and float32

func GetRandomStr

func GetRandomStr(maxLength int32) *string

min length is 50

func GetValueForSkipListEntry

func GetValueForSkipListEntry(val interface{}) uint64

func IsContainList

func IsContainList[T comparable](list interface{}, searchItem interface{}) bool

func PackRIDtoUint32

func PackRIDtoUint32(value *page.RID) uint32

func PackRIDtoUint64

func PackRIDtoUint64(value *page.RID) uint64

func RemovePrimitiveFromList

func RemovePrimitiveFromList[T int32 | float32 | string](list []T, elem T) []T

func StrideAdd

func StrideAdd(base interface{}, k interface{}) interface{}

func StrideMul

func StrideMul(base interface{}, k interface{}) interface{}

func TimeoutPanic

func TimeoutPanic()

func UnpackUint32toRID

func UnpackUint32toRID(value uint32) page.RID

func UnpackUint64toRID

func UnpackUint64toRID(value uint64) page.RID

Types

This section is empty.

Jump to

Keyboard shortcuts

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