grench
is an opinionated, zero-dependency utility library for developing Go applications.
The grench
(derived from the words 'go' and 'wrench') project aims to provide an importable, version-controlled package for commonly-used utility packages. These packages are usually too trivial to have its own dedicated package, yet pasting them into all your Go applications makes it hard to maintain whenever there are changes/fixes. The grench
package provides all of these so you can focus on getting your Go application up and running.
Packages are not guaranteed to have a stable API and may be subjected to change. Packages may also graduate into its library and be removed from grench
eventually. All of these changes will be documented accordingly in the CHANGELOG.
grench
requires Go 1.18 or later.
To install grench
, use go get
to fetch the latest version:
go get -u github.com/loozhengyuan/grench
Once installed, you may import it directly into your Go application:
import "github.com/loozhengyuan/grench"