Examples using... "go/types"

Recent
ExampleMethodSet prints the method sets of various types.
ExampleInfo prints various facts recorded by the type checker in a types.Info struct: definitions of and references to each named object, and the type, value, and mode of every expression in the package.