4d63.com/gocheckcompilerdirectives
Readme
Check that go compiler directives (//go:
comments) are valid and catch easy
mistakes.
Compiler directives are comments like //go:generate
, //go:embed
,
//go:build
, etc.
Go compiler directives are comments in the form of //go:
that provide an
instruction to the compiler.
The directives are easy to make mistakes with. The linter will detect the following mistakes:
Adding a space in between the comment bars and the first character, e.g. // go:
, will cause the compiler to silently ignore the comment.
Mistyping a directives name, e.g. //go:embod
, will cause the compiler to silently ignore the comment.
go install 4d63.com/gocheckcompilerdirectives@latest
gocheckcompilerdirectives [package]
gocheckcompilerdirectives ./...
FAQs
Unknown package
We found that 4d63.com/gocheckcompilerdirectives demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.