| 1 |
package enumtype |
| 2 |
|
| 3 |
// FruitType defines a kind of fruits. |
| 4 |
// +enum |
| 5 |
type FruitType string |
| 6 |
|
| 7 |
// FruitApple is the Apple |
| 8 |
const FruitApple FruitType = "apple" |
| 9 |
|
| 10 |
// FruitBanana is the Banana |
| 11 |
const FruitBanana FruitType = "banana" |
| 12 |
|
| 13 |
// FruitRiceBall is the Rice ball that does not seem to belong to |
| 14 |
// a fruits basket but has a long comment that is so long that it spans |
| 15 |
// multiple lines |
| 16 |
const FruitRiceBall FruitType = "onigiri" |
| 17 |
|
| 18 |
// FruitsBasket is the type that contains the enum type. |
| 19 |
// +k8s:openapi-gen=true |
| 20 |
type FruitsBasket struct { |
| 21 |
Content FruitType `json:"content"` |
| 22 |
|
| 23 |
// +default=0 |
| 24 |
Count int `json:"count"` |
| 25 |
} |