Fix gofmt and golint issues (#90)

This commit is contained in:
Cameron Moore
2016-08-22 04:20:25 -05:00
committed by Thomas Pelletier
parent e6271032cc
commit bfe4a7e160
5 changed files with 21 additions and 21 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
// Tools to convert a TomlTree to different representations
package toml
// Tools to convert a TomlTree to different representations
import (
"fmt"
"strconv"
@@ -126,7 +127,7 @@ func (t *TomlTree) ToMap() map[string]interface{} {
for k, v := range t.values {
switch node := v.(type) {
case []*TomlTree:
array := make([]interface{}, 0)
var array []interface{}
for _, item := range node {
array = append(array, item.ToMap())
}