Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jan 18, 2020

Gommon - Go common libraries


gommon


GoDoc Build Status codecov Go Report Card loc FOSSA Status

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.

Development

License

MIT

FOSSA Status

Contribution

Currently, gommon is in a very volatile state, please open issues after it becomes stable.

About

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.