mirror of https://github.com/dmarkham/enumer.git
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).
|
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).
|
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
|
## Generated functions and methods
|
||||||
When Enumer is applied to a type, it will generate:
|
When Enumer is applied to a type, it will generate:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue