commit | 3c37a674eadeecc44ba8d7006fe98c97242c194a | [log] [tgz] |
---|---|---|
author | John Southworth <john.southworth@gmail.com> | Fri Mar 03 00:07:08 2017 |
committer | John Southworth <john.southworth@gmail.com> | Fri Mar 03 00:13:14 2017 |
tree | 0453f6f4467ebb0b484a61cac35cceaaab0fb34b | |
parent | 692d22898a1dffbb54a37706afcb1324c510f2ac [diff] |
Rework support for more go types. The old algorithm iterated on the destination datastructures. This meant that tricky look ahead was required to handle all cases. By iterating on the source datastructure instead we can vastly simplify the logic for converting a source type into a destination type. This commit changes the type mismatch errors to indicate the actual problem with the types. Additional test cases now catch the problems seen by coreos/go-systemd. Fixes #80