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)
func CaptureStackTrace() string
Type Parameters:
T: any
TODO remove if that speeds things up
func GetVersion() string
J joins state names into a single string
Jw joins state names into a single string with a separator.
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 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.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |