| commit | b6b82cffc5c55f251ed77bafa81dee9fc27c051a | [log] [tgz] |
|---|---|---|
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Sun May 19 14:12:41 2013 -1000 |
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Sun May 19 14:12:41 2013 -1000 |
| tree | a9feb5f74211e61f90156a47df4b7d1871042703 | |
| parent | 0ae90ffbc5c4586a46564f256ed435e79d4df2e0 [diff] |
Support decoding slices
mapstructure is a Go library for converting generic map values to structures and vice versa, while providing helpful error handling.
This library is most useful when decoding values from some data stream (JSON, Gob, etc.) where you don't quite know the structure of the underlying data until you read a part of it. You can therefore read a map[string]interface{} and use this library to decode it into the proper underlying native Go structure.