A collection of Go hacks maintained by @dwisiswant0.
- cast: functions to convert between different types. [docs]
- exp: contains experimental and/or unstable APIs. [docs]
- exp/file: an
os.File-compatible API that prefers memory-mapped. [docs] - exp/gctuner: a lightweight GC tuning helper based on a heap. [docs]
- exp/sandboxec: wraps os/exec with Landlock policy enforcement. [docs]
- exp/file: an
- hash/wyhash: a Go implementation of the wyhash non-cryptographic. [docs]
- json: fast JSON encoding and decoding functionality. [docs]
- regexp: selects the fastest regex engine available for a pattern. [docs]
Note
Requires Go 1.25+. The packages in this repo use subdirectory module resolution introduced in Go 1.25, as this is a monorepo.
go get go.dw1.io/x/<package>Warning
x/exp contains experimental and/or unstable APIs. Expect breaking changes; pin exact versions when consuming it.
Each package is versioned independently. Tags follow the format:
<package>/v<major>.<minor>.<patch>
Apache License 2.0.