Add tiered configuration.

This commit is contained in:
Ben Johnson
2013-10-21 16:00:20 -06:00
parent 90c5614cd4
commit bc0e07bca2
45 changed files with 4004 additions and 394 deletions

View File

@ -0,0 +1,25 @@
package toml
import (
"bytes"
"testing"
)
type encodeSimple struct {
Location string
// Ages []int
// DOB time.Time
}
func TestEncode(t *testing.T) {
v := encodeSimple{
Location: "Westborough, MA",
}
buf := new(bytes.Buffer)
e := newEncoder(buf)
if err := e.Encode(v); err != nil {
t.Fatal(err)
}
testf(buf.String())
}