naoina / toml

TOML parser and encoder library for Golang
MIT License
294 stars 50 forks source link

Add support for struct pointer traversal #16

Closed timraymond closed 7 years ago

timraymond commented 8 years ago

This deals with two cases: where we have been provided with a pointer to a struct in the call to Marshal(), and also where we encounter a pointer while encoding a struct. The former case resulted in a panic (see #13), while the latter reported that Pointer types were not supported. The solution uses reflection to continually walk across pointers to get to the underlying value.

Fixes #13

timraymond commented 8 years ago

@naoina Two-month ping. Any thoughts on this?

timraymond commented 7 years ago

Thank you @fjl !