Redundant semicolon
Reports redundant semicolons. Idiomatic Go programs have semicolons only in places such as for
loop clauses, to separate the initializer, condition, and continuation elements. They are also necessary to separate multiple statements on a line. In other cases, you can omit them.
For more information about semicolons in Go, see Semicolons at go.dev.
Example:
i := 1;
Inspection Details | |
---|---|
Available in: | GoLand 2023.3 |
Plugin: | Go, 233.SNAPSHOT |
Last modified: 13 July 2023