update for new go/types API