const badFormat … const goodFormat … var doc … var Analyzer … func run(pass *analysis.Pass) (interface{ … } func isTimeDotFormat(f *types.Func) bool { … } func isTimeDotParse(f *types.Func) bool { … } // badFormatAt return the start of a bad format in e or -1 if no bad format is found. func badFormatAt(info *types.Info, e ast.Expr) int { … }