mirror of https://github.com/dmarkham/enumer.git
commit
a68056ee97
|
@ -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