https://github.com/sjmudd/golintbug
for public report of a golint bug I think I have found
https://github.com/sjmudd/golintbug
Last synced: about 1 year ago
JSON representation
for public report of a golint bug I think I have found
- Host: GitHub
- URL: https://github.com/sjmudd/golintbug
- Owner: sjmudd
- License: bsd-2-clause
- Created: 2021-01-03T14:54:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T15:12:51.000Z (over 5 years ago)
- Last Synced: 2023-04-22T07:49:18.937Z (about 3 years ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golint bug
The bug seems to be that `golint` does not recognise a an iota-typed
constant comment on the same line as the definition.
The code builds happily yet `golint` complains:
```
$ golint main*.go
main.go:10:2: exported const GoLintBugConst1 should have comment (or a comment on this block) or be unexported
```
The comment is correctly provided on the same line as the constant definition.
- `go` reports `go version go1.15.5 darwin/amd64`
- `golint` installed by `go get -u golang.org/x/lint/golint` so up to date as of 2021-01-03.
See: https://github.com/golang/lint/issues/502