Merge pull request #45 from sekky0905/add-how-to-install-to-readme

Add Install section to README
This commit is contained in:
Álvaro López Espinosa 2019-05-20 17:25:57 +01:00 committed by GitHub
commit 0fa5a42e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@
Enumer is a tool to generate Go code that adds useful methods to Go enums (constants with a specific type).
It started as a fork of [Rob Pikes Stringer tool](https://godoc.org/golang.org/x/tools/cmd/stringer).
# Install
```
go get github.com/alvaroloes/enumer
```
## Generated functions and methods
When Enumer is applied to a type, it will generate: