...

Directory /src/oss.terrastruct.com/util-go

Name Synopsis
..
assert Package assert provides test assertion helpers.
cmdlog Package cmdlog implements color leveled logging for command line tools.
example
diff package diff contains diff generation helpers, particularly useful for tests.
go2 Package go2 contains general utility helpers that should've been in Go.
mapfs Package mapfs takes in a description of a filesystem as a map[string]string and writes it to a temp directory so that it may be used as an io/fs.FS.
xbrowser
xcontext Package xcontext implements indispensable context helpers.
xdefer Package xdefer implements an extremely useful function, Errorf, to annotate all errors returned from a function transparently.
xexec
xhttp Package xhttp implements http helpers.
xjson Package xjson implements JSON helpers.
xmain flag_helpers.go are private functions from pflag/flag.go
xos Package xos provides useful os helpers.
xrand Package xrand provides helpers for generating useful random values.
xterm