utils

package
v0.38.261 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age added in v0.38.4

func Age(d time.Duration) string

func Contains added in v0.38.260

func Contains[T comparable](arr []T, item T) bool

func GenerateJSONMD5Hash added in v0.38.181

func GenerateJSONMD5Hash(obj interface{}) (string, error)

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 UUIDsToStrings(in []uuid.UUID) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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