5 // These interfaces were introduced in Go 1.2, so we add them manually when
6 // compiling for Go 1.1.
8 // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here
9 // so that Go 1.1 can be supported.
10 type TextMarshaler interface {
11 MarshalText() (text []byte, err error)
14 // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined
15 // here so that Go 1.1 can be supported.
16 type TextUnmarshaler interface {
17 UnmarshalText(text []byte) error