| // Code generated by fidlgen; DO NOT EDIT. |
| |
| package json |
| |
| type MyBits uint32 |
| |
| const ( |
| MyBitsMyFirstBit MyBits = 1 |
| MyBitsMyOtherBit MyBits = 2 |
| ) |
| |
| func (x MyBits) String() string { |
| switch x { |
| case 1: |
| return "MyFirstBit" |
| case 2: |
| return "MyOtherBit" |
| } |
| return "Unknown" |
| } |
| |
| type StrictBits uint64 |
| |
| const ( |
| StrictBitsSmallest StrictBits = 1 |
| StrictBitsBiggest StrictBits = 9223372036854775808 |
| ) |
| |
| func (x StrictBits) String() string { |
| switch x { |
| case 1: |
| return "Smallest" |
| case 9223372036854775808: |
| return "Biggest" |
| } |
| return "Unknown" |
| } |