Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / github.com / !burnt!sushi / toml@v0.3.1 / encoding_types_1.1.go
1 // +build !go1.2
2
3 package toml
4
5 // These interfaces were introduced in Go 1.2, so we add them manually when
6 // compiling for Go 1.1.
7
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)
12 }
13
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
18 }