system

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Foliage primary statefun system package. Provides shared system functions for statefun packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt64

func BytesToInt64(v []byte) int64

func CreateDimSizeChannel

func CreateDimSizeChannel[T interface{}](maxBufferElements int, onBufferOverflow func()) (in chan T, out chan T)

func GetCurrentTimeNs

func GetCurrentTimeNs() int64

func GetEnv

func GetEnv[T interface{}](key string, defaultVal T) (value T, err error)

func GetEnvMustProceed

func GetEnvMustProceed[T interface{}](key string, defaultVal T) T

func GetHashStr

func GetHashStr(str string) string

func GetUniqueStrID

func GetUniqueStrID() string

func Int64ToBytes

func Int64ToBytes(v int64) []byte

func MergeMaps

func MergeMaps[T interface{}](m1 map[string]T, m2 map[string]T) map[string]T

func MsgOnErrorReturn

func MsgOnErrorReturn(retVars ...interface{})

func Str2Int

func Str2Int(s string) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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