aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/BurntSushi/toml/encoding_types_1.1.go
blob: e8d503d04690d062c4ecc03252dbfafe0645ebd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +build !go1.2

package toml

// These interfaces were introduced in Go 1.2, so we add them manually when
// compiling for Go 1.1.

// TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here
// so that Go 1.1 can be supported.
type TextMarshaler interface {
	MarshalText() (text []byte, err error)
}

// TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined
// here so that Go 1.1 can be supported.
type TextUnmarshaler interface {
	UnmarshalText(text []byte) error
}