util/ directory
Directories ΒΆ
Path | Synopsis |
---|---|
util/cache | Package cache contains an interface for a cache around a typed value, and various cache implementations that implement that interface. |
util/cibuild | Package cibuild reports runtime CI information. |
util/clientmetric | Package clientmetric provides client-side metrics whose values get occasionally logged. |
util/cloudenv | Package cloudenv reports which known cloud environment we're running in. |
util/cmpver | Package cmpver implements a variant of debian version number comparison. |
util/codegen | Package codegen contains shared utilities for generating code. |
util/cstruct | Package cstruct provides a helper for decoding binary data that is in the form of a padded C structure. |
util/ctxkey | ctxkey provides type-safe key-value pairs for use with context.Context. |
util/deephash | Package deephash hashes a Go value recursively, in a predictable order, without looping. |
util/deephash/testtype | Package testtype contains types for testing deephash. |
util/dirwalk | Package dirwalk contains code to walk a directory. |
util/dnsname | Package dnsname contains string functions for working with DNS names. |
util/eventbus | Package eventbus provides an in-process event bus. |
util/eventbus/debug-demo | debug-demo is a program that serves a bus's debug interface over HTTP, then generates some fake traffic from a handful of clients. |
util/execqueue | Package execqueue implements an ordered asynchronous queue for executing functions. |
util/expvarx | Package expvarx provides some extensions to the expvar package. |
util/goroutines | The goroutines package contains utilities for tracking and getting active goroutines. |
util/groupmember | Package groupmember verifies group membership of the provided user on the local system. |
util/hashx | Package hashx provides a concrete implementation of hash.Hash that operates on a particular block size. |
util/httphdr | Package httphdr implements functionality for parsing and formatting standard HTTP headers. |
util/httpm | Package httpm has shorter names for HTTP method constants. |
util/jsonutil | Package jsonutil provides utilities to improve JSON performance. |
util/limiter | Package limiter provides a keyed token bucket rate limiter. |
util/lineiter | Package lineiter iterates over lines in things. |
util/lineread | Package lineread reads lines from files. |
util/linuxfw | Package linuxfw returns the kind of firewall being used by the kernel. |
util/linuxfw/linuxfwtest | Package linuxfwtest contains tests for the linuxfw package. |
util/lru | Package lru contains a typed Least-Recently-Used cache. |
util/mak | Package mak helps make maps. |
util/multierr | Package multierr provides a simple multiple-error type. |
util/must | Package must assists in calling functions that must succeed. |
util/nocasemaps | nocasemaps provides efficient functions to set and get entries in Go maps keyed by a string, where the string is always lower-case. |
util/osdiag | Package osdiag provides loggers for OS-specific diagnostic information. |
util/osshare | |
util/osuser | Package osuser implements OS user lookup. |
util/pidowner | Package pidowner handles lookups from process ID to its owning user. |
util/pool | Package pool contains a generic type for managing a pool of resources; for example, connections to a database, or to a remote service. |
util/precompress | Package precompress provides build- and serving-time support for precompressed static resources, to avoid the cost of repeatedly compressing unchanging resources. |
util/progresstracking | Package progresstracking provides wrappers around io.Reader and io.Writer that track progress. |
util/quarantine | Package quarantine sets platform specific "quarantine" attributes on files that are received from other hosts. |
util/race | Package race contains a helper to "race" two functions, returning the first successful result. |
util/racebuild | Package racebuild exports a constant about whether the current binary was built with the race detector. |
util/rands | Package rands contains utility functions for randomness. |
util/reload | Package reload contains functions that allow periodically reloading a value (e.g. |
util/ringbuffer | Package ringbuffer contains a fixed-size concurrency-safe generic ring buffer. |
util/set | Package set contains set types. |
util/singleflight | Package singleflight provides a duplicate function call suppression mechanism. |
util/slicesx | Package slicesx contains some helpful generic slice functions. |
util/stringsx | Package stringsx provides additional string manipulation functions that aren't in the standard library's strings package or go4.org/mem. |
util/syspolicy | Package syspolicy facilitates retrieval of the current policy settings applied to the device or user and receiving notifications when the policy changes. |
util/syspolicy/internal | Package internal contains miscellaneous functions and types that are internal to the syspolicy packages. |
util/syspolicy/rsop | Package rsop facilitates source.Store registration via RegisterStore and provides access to the effective policy merged from all registered sources via PolicyFor. |
util/syspolicy/setting | Package setting contains types for defining and representing policy settings. |
util/syspolicy/source | Package source defines interfaces for policy stores, facilitates the creation of policy sources, and provides functionality for reading policy settings from these sources. |
util/sysresources | Package sysresources provides OS-independent methods of determining the resources available to the current system. |
util/systemd | Package systemd contains a minimal wrapper around systemd-notify to enable applications to signal readiness and status to systemd. |
util/testenv | Package testenv provides utility functions for tests. |
util/topk | Package topk defines a count-min sketch and a cheap probabilistic top-K data structure that uses the count-min sketch to track the top K items in constant memory and O(log(k)) time. |
util/truncate | Package truncate provides a utility function for safely truncating UTF-8 strings to a fixed length, respecting multi-byte codepoints. |
util/usermetric | Package usermetric provides a container and handler for user-facing metrics. |
util/vizerror | Package vizerror provides types and utility funcs for handling visible errors that are safe to display to end users. |
util/winutil | Package winutil contains misc Windows/Win32 helper functions. |
util/winutil/authenticode | |
util/winutil/gp | |
util/winutil/s4u | |
util/winutil/winenv | |
util/zstdframe | Package zstdframe provides functionality for encoding and decoding independently compressed zstandard frames. |
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Last checked
- 1 day ago –
Tools for package owners.