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