forked from mirror/enumer
Merge pull request #45 from sekky0905/add-how-to-install-to-readme
Add Install section to README
This commit is contained in:
commit
0fa5a42e5f
|
@ -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 Pike’s 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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue