Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does gocov not support generics in Go version 1.20? #102

Open
FanLu1994 opened this issue Jun 6, 2023 · 1 comment
Open

Does gocov not support generics in Go version 1.20? #102

FanLu1994 opened this issue Jun 6, 2023 · 1 comment

Comments

@FanLu1994
Copy link

I'm using go build cover with Go version 1.20, and then generating an old version coverage report using go tool covdata textfmt -i . -o result.txt. However, when I tried to convert the report using gocov, I encountered an error. Does gocov not support generics in Go version 1.20?
error

 expected '(', found '[' (and 5 more errors)
@axw
Copy link
Owner

axw commented Jun 8, 2023

Type parameters should be supported with #91. I haven't used covdata, so I don't know if there's something special about it that is stopping things from working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants