(b bool)
| 73 | func NewTypeValue(t Type) Value { return NewValue(TypeType, EncodeTypeValue(t)) } |
| 74 | |
| 75 | func boolToUint64(b bool) uint64 { |
| 76 | if b { |
| 77 | return 1 |
| 78 | } |
| 79 | return 0 |
| 80 | } |
| 81 | |
| 82 | // Uint returns v's underlying value. It panics if v's underlying type is not |
| 83 | // TypeUint8, TypeUint16, TypeUint32, or TypeUint64. |