forked from mirror/enumer
commit
a68056ee97
|
@ -38,7 +38,7 @@ const (
|
||||||
Acetaminophen = Paracetamol
|
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
|
```go
|
||||||
func (i Pill) String() string {
|
func (i Pill) String() string {
|
||||||
//...
|
//...
|
||||||
|
|
Loading…
Reference in New Issue