Documentation ¶
Overview ¶
Package enum shows idiomatic way to implement an enumerated type:
- Create a new integer type.
- List its values using iota.
- Give the type a String function.
Based on yourbasic.org/golang/iota.
Level: beginner Topics: iota, enumerated type
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.