Describe the bug
Marshaling is wrong when a key contains a dot.
To Reproduce
type sub struct {
Num int `toml:"c.d"`
}
type s struct {
SubField sub `toml:"a.b"`
}
t, _ := toml.Marshal(s{sub{0}})
fmt.Println(string(t))
Output:
Expected behavior
Expected output:
Versions
- go-toml: last version of master (9ccd9bb)
- go: 1.14
- operating system: Linux
Additional context
None.