(from TypeID, to TypeID)
| 721 | } |
| 722 | |
| 723 | func cantConvert(from TypeID, to TypeID) error { |
| 724 | return errors.Errorf("Cannot convert %s to type %s", from.Name(), to.Name()) |
| 725 | } |
| 726 | |
| 727 | // MarshalJSON makes Val satisfy the json.Marshaler interface. |
| 728 | func (v Val) MarshalJSON() ([]byte, error) { |