Documentation ¶
Index ¶
- func Age(d time.Duration) string
- func Contains[T comparable](arr []T, item T) bool
- func Deref[T any](v *T, zeroVal ...T) T
- func FreePort() int
- func GenerateJSONMD5Hash(obj interface{}) (string, error)
- func MapKeys[T any](m map[string]T) []string
- func Ptr[T any](t T) *T
- func SetDifference[T comparable](a, b []T) []T
- func UUIDsToStrings(in []uuid.UUID) []string
- func UnfoldGlobs(paths ...string) []string
- type NamedLock
- type Unlocker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶ added in v0.38.260
func Contains[T comparable](arr []T, item T) bool
func GenerateJSONMD5Hash ¶ added in v0.38.181
GenerateJSONMD5Hash marshals the object into JSON and generates its md5 hash
func SetDifference ¶ added in v0.38.160
func SetDifference[T comparable](a, b []T) []T
SetDifference returns the list of elements present in a but not present in b
func UUIDsToStrings ¶ added in v0.38.257
func UnfoldGlobs ¶ added in v1.0.123
Types ¶
Click to show internal directories.
Click to hide internal directories.