You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

encoding_types_1.1.go 507B

123456789101112131415161718
  1. // +build !go1.2
  2. package toml
  3. // These interfaces were introduced in Go 1.2, so we add them manually when
  4. // compiling for Go 1.1.
  5. // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here
  6. // so that Go 1.1 can be supported.
  7. type TextMarshaler interface {
  8. MarshalText() (text []byte, err error)
  9. }
  10. // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined
  11. // here so that Go 1.1 can be supported.
  12. type TextUnmarshaler interface {
  13. UnmarshalText(text []byte) error
  14. }