mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
507 B
Go
19 lines
507 B
Go
6 years ago
|
// +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
|
||
|
}
|