The Netic go standard library is an extension to the go standard library. It comes in the form of a collection of packages.
The packages are dependency free, meaning they must not use any external dependencies unless explicitly listed. Exceptions:
golang.org/x/*- maintained by go and dependency free
CI checks the imports against regular expressions found in the
.allowed-imports file. To allow new imports, add them to the
.allowed-imports file in a separate PR.
Do NOT add exceptions to this list without peer review.
- Prefix names for packages that mirror a go standard library package with
x. - Prefix names for packages that are likely to mirror future go standard library
packages with
x. - Use singular names for package (except in the mentioned cases).
- Unit testing is mandatory.
- Go for > 90% coverage, preferably 100%.
- Document all exported (public) identifiers
- Maintain a
doc.goin each package with introduction, installation instructions and usage examples.
// Package mypkg does ...
package mypkgassert/require- test helpers for assertioncache/cache/inmem- cachingdiff/diff/myers/diff/simple- generate diffsfile- file operationsset- set data structureunit- unit formatting and conversion packagexjson- JSON functionsxslices- slice data type functionsxstrings- string data type functionsxstructs- struct data type functionsxtime- time functions
Install using go get:
go get github.com/neticdk/go-stdlibContributions are welcome! Please open an issue or submit a pull request.
Link to license or copyright notice
Copyright 2025 Netic A/S. All rights reserved.