Reserved word used as name
Reports declarations of variables, arguments or functions that overlap with the built-in or reserved keyword.
If you receive this error then your code might not be as explicit as possible and might confuse other users.
Example:
type byte struct{}
type string interface{}
Types byte
and string
collide with the built-in type aliases. Therefore, they will be highlighted. Consider renaming such declarations.
Inspection Details | |
---|---|
Available in: | GoLand 2023.3 |
Plugin: | Go, 233.SNAPSHOT |
Last modified: 13 July 2023