Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomPrefixedSHA256

func GenerateRandomPrefixedSHA256() string

GenerateRandomPrefixedSHA256 generates a random 64 character SHA 256 hash string, prefixed with `sha256:`

func GenerateRandomSHA256

func GenerateRandomSHA256() string

GenerateRandomSHA256 generates a random 64 character SHA 256 hash string

func RandName

func RandName() string

RandName Generates a random, 32-character, Docker-compatible container name.

func SliceEqual

func SliceEqual(s1, s2 []string) bool

SliceEqual compares two slices and checks whether they have equal content

func SliceSubtract

func SliceSubtract(a1, a2 []string) []string

SliceSubtract subtracts the content of slice a2 from slice a1

func StringMapSubtract

func StringMapSubtract(m1, m2 map[string]string) map[string]string

StringMapSubtract subtracts the content of structmap m2 from structmap m1

func StructMapSubtract

func StructMapSubtract(m1, m2 map[string]struct{}) map[string]struct{}

StructMapSubtract subtracts the content of structmap m2 from structmap m1

Types

This section is empty.

Jump to

Keyboard shortcuts

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