Leading whitespace in directive comment
Reports leading whitespaces before Go directives in comments.
Go directives are not recognized if there is whitespace between //
and the Go directive.
The quick-fix removes the leading whitespace before the Go directive.
Example:
// go:embed file.txt
var File string
After the quick fix is applied:
//go:embed file.txt
var File string
Inspection Details | |
---|---|
Available in: | GoLand 2023.3 |
Plugin: | Go, 233.SNAPSHOT |
Last modified: 13 July 2023