Skip to content

flag: -strict mode #3

@abhinav

Description

@abhinav

In strict mode, the linter will disallow var-based instantiations of structs with required fields. (Pointers would be allowed.) The argument for that being that with var x Foo is equivalent to x := Foo{}, and that's not allowed if there are any required fields.

This would be opt-in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions