This change eliminates boilerplate decoding logic in all the different data structures, and instead uses a new tag-directed decoding scheme. This works a lot like the JSON deserializers, in that it recognizes the `json:"name"` tags, except that we permit annotation of fields that require custom deserialization, as `json:"name,custom"`. The existing `json:"name,omitempty"` tag is recognized for optional fields. |
||
---|---|---|
.. | ||
ast | ||
encoding | ||
symbols | ||
package.go |