* Fixed misspell
* Fixed ineffassign
`user` and `password` always got overwritten
`orderedVals` was initialized with an empty array but always got overwritten by either `sortByLines()` or `sortAlphabetical`
`err` was assigned a `nil` value that was either overwritten or unused anyways
* Fix comment for DeletePath
The comment assumed the method was named Delete, i guess a rename happened at some point
* Update doc_test.go
The new multiline tag works just like the existing 'commented' tag (i.e.
`multiline:"true"`), and tells go-toml to marshal the value as a
multi-line string. The tag currently has no impact on any non-string
fields.
A new Encoder option emits arrays with more than one line on multiple lines.
This is off by default and toggled with `ArraysWithOneElementPerLine`.
For example:
```
A = [1,2,3]
```
Becomes:
```
A = [
1,
2,
3
]
```
Fixes#200
* Don't use fmt.Sprintf on simple strings
* Use bytes.Buffer in encodeTomlString
name old time/op new time/op delta
Lexer-8 162µs ± 0% 161µs ± 0% -0.12%
TreeToTomlString-8 19.7µs ± 0% 7.5µs ± 0% -61.80%
name old alloc/op new alloc/op delta
TreeToTomlString-8 9.75kB ± 0% 4.96kB ± 0% -49.12%
name old allocs/op new allocs/op delta
TreeToTomlString-8 485 ± 0% 78 ± 0% -83.92%
* Make TreeFromMap reflect to construct tree
* Fix wording of invalid value type in writeTo
Fixes#138, #139, #134⚠️ TreeFromMap signature changed to `TreeFromMap(map[string]interface{}) (*TomlTree, error)`