utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "v0.1.0"
	GitCommit = ""
)

Functions

func Parse

func Parse(ref string) (namespace string, name string)

func Pointer

func Pointer[T valueTypes](i T) *T

Pointer gets the pointer of the variable.

func PrintObject

func PrintObject(a any) string

func RandomHex

func RandomHex(l int) string

Generates a random hexadecimal number.

func Value

func Value[T valueTypes](p *T) T

A safe function to get the value from the pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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