Add array support todo
This commit is contained in:
@@ -10,8 +10,9 @@ Development branch. Probably does not work.
|
|||||||
- [x] Support Array Tables.
|
- [x] Support Array Tables.
|
||||||
- [x] Unmarshal into pointers.
|
- [x] Unmarshal into pointers.
|
||||||
- [x] Support Date / times.
|
- [x] Support Date / times.
|
||||||
- [ ] Support Unmarshaler interface.
|
|
||||||
- [x] Support struct tags annotations.
|
- [x] Support struct tags annotations.
|
||||||
|
- [ ] Support Arrays.
|
||||||
|
- [ ] Support Unmarshaler interface.
|
||||||
- [ ] Original go-toml unmarshal tests pass.
|
- [ ] Original go-toml unmarshal tests pass.
|
||||||
- [ ] Benchmark!
|
- [ ] Benchmark!
|
||||||
- [ ] Abstract AST.
|
- [ ] Abstract AST.
|
||||||
|
|||||||
@@ -1833,7 +1833,7 @@ func TestUnmarshalSliceFail2(t *testing.T) {
|
|||||||
assert.Error(t, toml.Unmarshal([]byte(doc), &actual))
|
assert.Error(t, toml.Unmarshal([]byte(doc), &actual))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUnmarshalMixedTypeArray(t *testing.T) {
|
func TestUnmarshalMixedTypeSlice(t *testing.T) {
|
||||||
type TestStruct struct {
|
type TestStruct struct {
|
||||||
ArrayField []interface{}
|
ArrayField []interface{}
|
||||||
}
|
}
|
||||||
@@ -1854,9 +1854,9 @@ func TestUnmarshalMixedTypeArray(t *testing.T) {
|
|||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
"Field": "inner1",
|
"Field": "inner1",
|
||||||
},
|
},
|
||||||
[]map[string]interface{}{
|
[]interface{}{
|
||||||
{"Field": "inner2"},
|
map[string]interface{}{"Field": "inner2"},
|
||||||
{"Field": "inner3"},
|
map[string]interface{}{"Field": "inner3"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user