const Doc … var Analyzer … var whitelist … func init() { … } // runUnkeyedLiteral checks if a composite literal is a struct literal with // unkeyed fields. func run(pass *analysis.Pass) (interface{ … } // isLocalType reports whether typ belongs to the same package as pass. // TODO(adonovan): local means "internal to a function"; rename to isSamePackageType. func isLocalType(pass *analysis.Pass, typ types.Type) bool { … }