package utils

Import Path
	/internal/utils (on go.dev)

Dependency Relation
	imports 11 packages, and imported by 14 packages

Involved Source Files utils.go
Package-Level Functions (total 16)
Type Parameters: T: any TODO remove if that speeds things up
J joins state names into a single string
Jw joins state names into a single string with a separator.
func P(txt string, args ...any)
func PadString(str string, length int, pad string) string
RandId generates a random ID of the given length (defaults to 8).
Type Parameters: S1: ~[]E S2: ~[]E E: comparable SlicesEvery returns true if all elements of coll2 are in coll1.
Type Parameters: S1: ~[]E S2: ~[]E E: comparable SlicesNone returns true if none of the elements of coll2 are in coll1.
Type Parameters: S: ~[]E E: comparable
Type Parameters: S: ~[]E E: comparable
func Sp(txt string, args ...any) string
func StructFields(input interface{}) ([]string, error)
TruncateStr with shorten the string and leave a tripedot suffix.
Package-Level Constants (only one)
EnvAmHostname will override the hostname in all machine names.