altsrc: Support slices for TOML

This commit is contained in:
Jesse Szwedko 2017-01-16 17:34:12 -08:00
parent f8347a97c6
commit e87dfbb6bb

View File

@ -57,8 +57,8 @@ func unmarshalMap(i interface{}) (ret map[interface{}]interface{}, err error) {
} else {
return nil, err
}
case reflect.Array:
fallthrough // [todo] - Support array type
case reflect.Array, reflect.Slice:
ret[key] = val.([]interface{})
default:
return nil, fmt.Errorf("Unsupported: type = %#v", v.Kind())
}