Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

4d63.com/gocheckcompilerdirectives

Package Overview
Dependencies
3
Maintainers
0
Issues
File Explorer

4d63.com/gocheckcompilerdirectives

    v1.2.1

Version published
Maintainers
0

Readme

gocheckcompilerdirectives

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.

Why

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:

  1. Adding a space in between the comment bars and the first character, e.g. // go:, will cause the compiler to silently ignore the comment.

  2. Mistyping a directives name, e.g. //go:embod, will cause the compiler to silently ignore the comment.

Install

go install 4d63.com/gocheckcompilerdirectives@latest

Usage

gocheckcompilerdirectives [package]
gocheckcompilerdirectives ./...

FAQs

Last updated on 22 Jan 2023

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.

Install
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc