package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 15, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func JoinBytes(bytes ...any) []byte
JoinBytes is an easy way to join multiple values into a single []byte
SysFreeMemory returns the amount of memory available in megabytes
toNumber converts multiple types to a number
accepts: int (and variants), string, []byte, byte, bool
func ToString[T interface{ string | []byte }](val interface{}) T
toString converts multiple types to a string|[]byte
accepts: string, []byte, byte, int (and variants), [][]byte, []interface{}
type CacheMap[T any] struct {
}
delOld removes old cache items
get returns a value or an error if it exists
if the object key does not exist, it will return both a nil/zero value (of the relevant type) and nil error
set sets or adds a new key with either a value, or an error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.