aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/json.txt
AgeCommit message (Collapse)Author
2021-03-28transform: optimize reflect.Type Implements() methodAyke van Laethem
This commit adds a new transform that converts reflect Implements() calls to runtime.interfaceImplements. At the moment, the Implements() method is not yet implemented (how ironic) but if the value passed to Implements is known at compile time the method call can be optimized to runtime.interfaceImplements to make it a regular interface assert. This commit is the last change necessary to add basic support for the encoding/json package. The json package is certainly not yet fully supported, but some trivial objects can be converted to JSON.