https://github.com/neticdk/go-stdlib
Extended standard library for go projects
https://github.com/neticdk/go-stdlib
Last synced: 2 months ago
JSON representation
Extended standard library for go projects
- Host: GitHub
- URL: https://github.com/neticdk/go-stdlib
- Owner: neticdk
- License: mit
- Created: 2025-03-27T07:11:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-25T06:57:19.000Z (2 months ago)
- Last Synced: 2026-03-26T11:13:24.087Z (2 months ago)
- Language: Go
- Size: 991 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Netic go standard library
[](https://github.com/neticdk/go-stdlib/releases)
[](https://github.com/neticdk/go-stdlib/actions/workflows/ci.yaml)
[](https://pkg.go.dev/github.com/neticdk/go-stdlib)
[](https://goreportcard.com/report/github.com/neticdk/go-stdlib)
[](LICENSE)
The Netic go standard library is an extension to the go standard library. It
comes in the form of a collection of packages.
## Dependencies
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.
## Package names
- 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).
## Testing
- Unit testing is mandatory.
- Go for > 90% coverage, preferably 100%.
## Documentation
- Document all exported (public) identifiers
- Maintain a `doc.go` in each package with introduction, installation
instructions and usage examples.
### doc.go minimal content
```go
// Package mypkg does ...
package mypkg
```
## Packages
- `assert` / `require` - test helpers for assertion
- `cache` / `cache/inmem` - caching
- `diff` / `diff/myers` / `diff/simple` - generate diffs
- `file` - file operations
- `set` - set data structure
- `unit` - unit formatting and conversion package
- `xjson` - JSON functions
- `xslices` - slice data type functions
- `xstrings` - string data type functions
- `xstructs` - struct data type functions
- `xtime` - time functions
## Installation
Install using `go get`:
```bash
go get github.com/neticdk/go-stdlib
```
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.
## License
Link to license or copyright notice
Copyright 2025 Netic A/S. All rights reserved.