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.go 541B

12345678910111213141516171819
  1. // +build go1.2
  2. package toml
  3. // In order to support Go 1.1, we define our own TextMarshaler and
  4. // TextUnmarshaler types. For Go 1.2+, we just alias them with the
  5. // standard library interfaces.
  6. import (
  7. "encoding"
  8. )
  9. // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here
  10. // so that Go 1.1 can be supported.
  11. type TextMarshaler encoding.TextMarshaler
  12. // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined
  13. // here so that Go 1.1 can be supported.
  14. type TextUnmarshaler encoding.TextUnmarshaler