Skip to content

Commit

Permalink
Update _examples/enum/model/model.go
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenACoffman authored Jan 6, 2025
1 parent cd7c1d9 commit e4cc544
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _examples/enum/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import (
"fmt"
)

// this file is provided as an example for int-based enums
// but if you instead wanted to support arbitrary
// english words for numbers to integers, consider
// github.com/will-lol/numberconverter/etoi or a similar library
type IntTyped int

const (
Expand Down

0 comments on commit e4cc544

Please # to comment.