Skip to content

x/tools/go/packages: add syntax only mode? #29429

Closed
@matloob

Description

@matloob

Maybe we should add a go/packages LoadMode to just parse files but not perform type checking.

The name LoadSyntax is already taken, so I don't want to change its meaning, but if we can find a good name for the new mode, it seems like we could add it in. One unfortunate detail would be that we'd break the "feature" of the LoadMode heirarchy that each successive mode provides more information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions