FarmHash provides hash functions for strings and other data. The functions mix the input bits thoroughly but are not suitable for cryptography. It is implemented as a mechanical translation of the non-SSE4/non-AESNI hash functions from Google's FarmHash.
This package implements parsing and generation of some PKCS#7/Cryptographic Message Syntax (https://www.rfc-editor.org/rfc/rfc2315, RFC 2315, RFC 5652) structures for Go applications. It's an alternative fork of deprecated https://github.com/mozilla-services/pkcs7.
cpuid provides information about the CPU running the current program. CPU features are detected on startup, and kept for fast access through the life of the application. Currently x86 / x64 (AMD64) is supported, and no external C (cgo) code is used, which should make the library very eas to use.
Package dns implements a full featured interface to the Domain Name System. Both server- and client-side programming is supported. The package allows complete control over what is sent out to the DNS. The API follows the less-is-more principle, by presenting a small, clean interface.
Go sigar is a golang implementation of the sigar API. The Go version of sigar has a very similar interface, but is being written from scratch in pure go/cgo, rather than cgo bindings for libsigar. This package provides an alternative fork of https://github.com/cloudfoundry/gosigar.
This is a library for manipulating geometric shapes. Unlike many geometry libraries, S2 is primarily designed to work with spherical geometry, i.e., shapes drawn on a sphere rather than on a planar 2D map. This makes it especially suitable for working with geographic data. It an alternative fork of https://github.com/golang/geo.
Package deque provides a fast ring-buffer deque (double-ended queue) implementation for Golang.
It generalizes a queue and a stack, to efficiently add and remove items at either end with O(1) performance. Queue (FIFO) operations are supported using PushBack and PopFront. Stack (LIFO) operations are supported using PushBack and PopBack.
Go-fuzz is a coverage-guided fuzzing solution for testing of Go packages. Fuzzing is mainly applicable to packages that parse complex inputs (both text and binary), and is especially useful for hardening of systems that parse inputs from potentially malicious users (e.g. anything accepted over a network).
Package run implements an actor-runner with deterministic teardown. It is somewhat similar to package errgroup, except it does not require actor goroutines to understand context semantics. This makes it suitable for use in more circumstances; for example, goroutines which are handling connections from net.Listeners, or scanning input from a closable io.Reader.
Package run implements an actor-runner with deterministic teardown. It is somewhat similar to package errgroup, except it does not require actor goroutines to understand context semantics. This makes it suitable for use in more circumstances; for example, goroutines which are handling connections from net.Listeners, or scanning input from a closable io.Reader.
This Go library represents physical units like length, area, speed, and temperature as typed floating point numbers. Methods to convert between metric and US customary units of measurement are provided on each type. Additional units can be created by multiplying by const values and variables can be converted by casting.
This package, fsx, takes the style of the io/fs package, and extends it with more features:
fsx provides the ability to write files (using OpenFile, which is much like the os package feature you're already familiar with)
fsx provides the ability to create directories
fsx provides the ability to delete files and directories
fsx provides features for reading symlinks, and creating them
This package implements a functionality for two parties to generate a mutual secret key by using a weak key that is known to both beforehand (e.g. via some other channel of communication). This is a simple API for an implementation of Password-Authenticated Key Exchange. This protocol is derived from Dan Boneh and Victor Shoup's cryptography book (pg 789, PAKE2 protocol).
Package buffer implements a series of Buffers which can be composed to implement complicated buffering strategies.
Supported buffers:
Wrapper for bytes.
File-based buffering.
A fixed length linked-list of buffers.
A queue of buffers.
A single buffer which begins overwriting the oldest buffered data when it reaches its capacity.
A single buffer which when full, writes the overflow to a given io.
Empty buffer.
Customize buffers.
The termui Go library draws customizable dashboard widgets in a text terminal. It includes several common widgets: lists, trees, tables and tabs, but also more complex items such as (stacked) bar and pie charts, scatter plots, gauges, and even images and a canvas for drawing `high resolution' braille dots.
You can also easily create new custom widgets. Widgets can be coloured and styled and positioned absolutely or relatively. They respond to keyboard, mouse, and terminal resizing events.
go-re2 is a drop-in replacement for the standard library regexp package which uses the C++ re2 library for improved performance with large inputs or complex expressions. By default, re2 is packaged as a WebAssembly module, then compiled to Go using wasm2go. This means that it is compatible with any Go application, regardless of availability of cgo.
Fastzip is an opinionated Zip archiver and extractor with a focus on speed. Features:
archiving and extraction of files and directories can only occur within a specified directory
permissions, ownership (uid, gid on linux/unix) and modification times are preserved
buffers used for copying files are recycled to reduce allocations
files are archived and extracted concurrently
by default,
github.com/klauspost/compress/flatelibrary is used for compression and decompression
ksuid is an efficient, comprehensive, battle-tested Go library for generating and parsing a specific kind of globally unique identifier called a KSUID. This library serves as its reference implementation.
KSUID is for K-Sortable Unique IDentifier. It is a kind of globally unique identifier similar to a RFC 4122 UUID, built from the ground-up to be "naturally" sorted by generation timestamp without any special type-aware logic.
Puddle is a tiny generic resource pool library hat uses the standard context library to signal cancellation of acquires. It is designed to contain the minimum functionality required for a resource pool. It can be used directly or it can be used as the base for a domain specific resource pool. For example, a database connection pool may use puddle internally and implement health checks and keep-alive behavior without needing to implement any concurrent code of its own.
This package provides various utilities to write application in Go:
nulls- Proper JSON implementations of null database types.validate- A framework for writing validations.wait- Wait cleans up the pattern around usingsync.WaitGroup.defaults- Allows for the setting of default values for common types.willy- A helper for cleaning up HTTP tests.del- A wrapper around therenderpackage to make it work withecho.
Yamux (Yet another Multiplexer) relies on an underlying connection to provide reliability and ordering, such as TCP or Unix domain sockets, and provides stream-oriented multiplexing. It is inspired by SPDY but is not interoperable with it.
Features:
streams can be opened by either client or server
useful for nat traversal
server-side push support
avoid starvation
back-pressure to prevent overwhelming a receiver
enables persistent connections over a load balancer
enables thousands of logical streams with low overhead
This library will help you allow two parties to generate a mutual secret key by using a weak key that is known to both beforehand (e.g. via some other channel of communication). This is a simple API for an implementation of password-authenticated key exchange (PAKE). This protocol is derived from Dan Boneh and Victor Shoup's cryptography book (pg 789, "PAKE2 protocol). I decided to create this library so I could use PAKE in my file-transfer utility, croc.
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
Pointers are dereferenced and followed.
Circular data structures are detected and handled properly.
Custom Stringer/error interfaces are optionally invoked, including on unexported types.
Custom types which only implement the Stringer/error interfaces via a pointer receiver are optionally invoked when passing non-pointer variables.
Byte arrays and slices are dumped like the hexdump -C command which includes offsets, byte values in hex, and ASCII output (only when using Dump style).
Package poller is a file-descriptor multiplexer. It allows concurent Read and Write operations from and to multiple file-descriptors without allocating one OS thread for every blocked operation. It operates similarly to Go's netpoller (which multiplexes network connections) without requiring special support from the Go runtime. It can be used with tty devices, character devices, pipes, FIFOs, and any file-descriptor that is poll-able (can be used with select(2), epoll(7), etc.) In addition, package poller allows the user to set timeouts (deadlines) for read and write operations, and also allows for safe cancelation of blocked read and write operations; a Close from another go-routine safely cancels ongoing (blocked) read and write operations.