Categorygithub.com/barbell-math/util
repository
0.0.1
Repository: https://github.com/barbell-math/util.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

util

A golang utility library that aims to add useful features to the std lib.

Documentation

This package contains many sub-packages that each deserve more space than can be given in one combined README. Please refer to each packages README for information about each sub-package:

  1. Iterator framework
  2. Containers (a.k.a. data structures)
  3. CLI argument parser
  4. Widgets
  5. Generators

Code Generator Installation

If your project would benefit from using the code generators defined in this utility library then you can install them using the command shown below. The generator executables will be placed in the $GOPATH/bin directory.

go install github.com/barbell-math/util/generators/...

To install a single generator rather than all of the use the command shown below.

go install github.com/barbell-math/util/generators/<generator name>

Package Install

If your project would benefit from using the this package directly as a library then you can use the command shown below to add the library to your project.

go get github.com/barbell-math/util

Helpful Commands

Building and Running Generators

go build -o ./bin/ ./generators/...
go generate ./src/...

Running Unit Tests

go build -o ./bin/ ./generators/...     # unnecessary if no generated code changed
go generate ./src/...                   # unnecessary if no generated code changed
go test ./src/...