We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 026567f commit a029abaCopy full SHA for a029aba
pkg/goanalysis/pkgerrors/parse.go
@@ -26,7 +26,7 @@ func parseError(srcErr packages.Error) (*result.Issue, error) {
26
}
27
28
func parseErrorPosition(pos string) (*token.Position, error) {
29
- // file:line(<optional>:colon)
+ // file:line(<optional>:column)
30
parts := strings.Split(pos, ":")
31
if len(parts) == 1 {
32
return nil, errors.New("no colons")
@@ -39,7 +39,7 @@ func parseErrorPosition(pos string) (*token.Position, error) {
39
40
41
var column int
42
- if len(parts) == 3 { // no column
+ if len(parts) == 3 { // got column
43
column, err = strconv.Atoi(parts[2])
44
if err != nil {
45
return nil, fmt.Errorf("failed to parse column from %q: %w", parts[2], err)
0 commit comments