commit | d4f673f5c8360c8583662584a3d279a1b6747783 | [log] [tgz] |
---|---|---|
author | John Southworth <john.southworth@gmail.com> | Thu Nov 03 20:03:27 2016 |
committer | John Southworth <john.southworth@gmail.com> | Fri Nov 04 03:13:03 2016 |
tree | 7bd19cb6537a021864a2a48b0302dc72c7039249 | |
parent | 835f9e73726c4b57414ba7db6f0b0c58f72db573 [diff] |
Add support for mapping the empty interface to Variants where appropriate. It is appropriate to convert emtpy interface to Variant in the following situations: a) Standalone empty interface as dest in Store. b) []interface{} as dest in Store. c) map[T]interface{} as dest in Store. d) Signature "v" for empty interface type e) Encode of empty interface becomes encode of variant. This commit also refactors Store to be more readable.