Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 GO-2024-3105 GO-2024-3105: Stack exhaustion in all Parse functions in go/parser Changes in this version + func ParseDir(fset *token.FileSet, path string, filter func(fs.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error) + func ParseExpr(x string) (ast.Expr, error) + func ParseExprFrom(fset *token.FileSet, filename string, src any, mode Mode) (expr ast.Expr, err error) + func ParseFile(fset *token.FileSet, filename string, src any, mode Mode) (f *ast.File, err error) + type Mode uint + const AllErrors + const DeclarationErrors + const ImportsOnly + const PackageClauseOnly + const ParseComments + const SkipObjectResolution + const SpuriousErrors + const Trace