Skip to content

type mismatch error in helpprinter when getting benchdiff #13

@varun06

Description

@varun06

Hi,

I am getting following errors when I am trying to go get benchdiff.

❯ go get -u github.com/willabides/benchdiff/cmd/benchdiff
# github.com/willabides/benchdiff/cmd/benchdiff/internal/helpprinter
../../../../go/pkg/mod/github.com/willabides/benchdiff@v0.7.0/cmd/benchdiff/internal/helpprinter/helpprinter.go:31:22: cannot use flag.Group (type *kong.Group) as type string in map index
../../../../go/pkg/mod/github.com/willabides/benchdiff@v0.7.0/cmd/benchdiff/internal/helpprinter/helpprinter.go:33:14: cannot use flag.Group (type *kong.Group) as type string in map index
../../../../go/pkg/mod/github.com/willabides/benchdiff@v0.7.0/cmd/benchdiff/internal/helpprinter/helpprinter.go:37:20: cannot use flags[i].Group (type *kong.Group) as type string in map index
../../../../go/pkg/mod/github.com/willabides/benchdiff@v0.7.0/cmd/benchdiff/internal/helpprinter/helpprinter.go:37:49: cannot use flags[j].Group (type *kong.Group) as type string in map index
../../../../go/pkg/mod/github.com/willabides/benchdiff@v0.7.0/cmd/benchdiff/internal/helpprinter/helpprinter.go:139:39: invalid operation: group[0].Group != "" (mismatched types *kong.Group and string)
../../../../go/pkg/mod/github.com/willabides/benchdiff@v0.7.0/cmd/benchdiff/internal/helpprinter/helpprinter.go:140:35: invalid operation: group[0].Group + "GroupHelp" (mismatched types *kong.Group and string)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions