Gommon is a collection of common util libraries written in Go.
- errors error wrapping, inspection, multi error (error list), common error types
- log per package logger with reasonable performance
- noodle embed static assets for web application with
.noodleignore
support - generator render go template, generate methods for logger interface based on
gommon.yml
- util wrappers for standard libraries
It has little third party dependencies, only go-yaml/yaml in util/cast, go-shellquote in generator, other dependencies like cobra are only for cli, see go.mod.
- requires go1.13
make help
- Directory layout
MIT
Currently, gommon is in a very volatile state, please open issues after it becomes stable.
Gommon is inspired by many existing libraries, attribution and comparision can be found in doc/attribution.
Gommon was part of Ayi and split out for wider use. The name Gommon is suggested by @arrowrowe. The original blog post can be found in dongyue web's blog. Thanks all the folks in @dyweb especially @gaocegege for their support in early development.