| 1 | package bare |
| 2 | |
| 3 | import ( |
| 4 | "errors" |
| 5 | "fmt" |
| 6 | "reflect" |
| 7 | ) |
| 8 | |
| 9 | var ErrInvalidStr = errors.New("String contains invalid UTF-8 sequences") |
| 10 | |
| 11 | type UnsupportedTypeError struct { |
| 12 | Type reflect.Type |
| 13 | } |
| 14 | |
| 15 | func (e *UnsupportedTypeError) Error() string { |
| 16 | return fmt.Sprintf("Unsupported type for marshaling: %s\n", e.Type.String()) |
| 17 | } |