This package provides a collection various self sufficient Golang sub-packages:
bytereplacer
- provides a utility for replacing parts of bytectxutil
- contains golang.org/x/net/context related utilitieserrorutil
- helps make better error messagesfault
- handles fault injection for testingjsonconfig
- defines a helper type for JSON objects to be used for configurationlegal
- provides in-process storage for compiled-in licenseslock
- provides a file locking librarymedia/heif
- reads HEIF containers, as found in Apple HEIC/HEVC imagesmust
- contains helpers that panic on failurenet/throttle
- provides anet.Listener
that returns artificially-delayed connections for testing real-world connectivity slicesoauthutil
- contains OAuth 2 related utilitiesosutil
- contains os level functionsreaderutil
- containsio.Reader
typesreaderutil
- provides and operates onio.Readers
reflectutil
- containsreflect
utilitiesrollsum
- implements rolling checksums similar to apenwarr's bup, which is similar to librsyncsort
- provides primitives for sorting slices and user-defined collectionsstrutil
- contains string and byte processing functionssyncutil/singleflight
- provides a duplicate function call suppression mechanismsyncutil/syncdebug
- contains facilities for debugging synchronization problemssyncutil
- provides various synchronization utilitiestesting/functest
- contains utilities to ease writing table-driven tests for pure functions and methodtypes
- provides various common typeswkfs
- implements the pluggable well-known filesystem abstraction layerwriterutil
- contains io.Writer typesxdgdir
- implements the Free Desktop Base Directory specification for locating directories