Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. }