mirror of https://github.com/dmarkham/enumer.git
parent
6c940ce86e
commit
5188ada83d
|
@ -38,7 +38,7 @@ const (
|
|||
Acetaminophen = Paracetamol
|
||||
)
|
||||
```
|
||||
executing `enumer -type=Pill -json` will generate a new file with four basic method and two extra for JSON:
|
||||
executing `enumer -type=Pill -json` will generate a new file with four basic methods and two extra for JSON:
|
||||
```go
|
||||
func (i Pill) String() string {
|
||||
//...
|
||||
|
|
Loading…
Reference in New Issue