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. Packages added to this module must not use any external dependencies unless listed below.
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 > 95% coverage, preferably 100%.
- Document all exported (public) identifiers
- Maintain a
doc.go
in each package with introduction, installation instructions and usage examples. - Use
make gen
to generateREADME.md
files
// Package mypkg does ...
package mypkg
assert
/require
- test helpers for assertiondiff
/diff/myers
/diff/simple
- generate diffsfile
- file operationsset
- set data structureunit
- unit formatting and conversion packageversion
- version functionsxjson
- JSON functionsxslices
- slice data type functionsxstrings
- string data type functionsxstructs
- struct data type functions
Install using go get
:
go get github.com/neticdk/go-stdlib
Contributions 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.