gopkg.in/alecthomas/gometalinter.v3@v3.0.0/_linters/src/github.com/BurntSushi/toml/encoding_types_1.1.go (about)

     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  }