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

[Feature Request] Add support for Go 1.18 #63

Closed
ajatprabha opened this issue Feb 26, 2022 · 1 comment
Closed

[Feature Request] Add support for Go 1.18 #63

ajatprabha opened this issue Feb 26, 2022 · 1 comment

Comments

@ajatprabha
Copy link

Hi, I was trying out Go 1.18 when I figured that gomarkdoc currently doesn't work with Go 1.18 projects that use generics.

For some code that uses generics

type Set[T comparable] map[T]bool

gomarkdoc currently gives error with 1.18 projects

gomarkdoc: failed to parse package: generic/set.go:4:12: expected ']', found comparable (and 1 more errors)

Wondering if the support is planned after a stable 1.18 release. Not sure how much effort this would be, I'm hoping it'll just require updating some parsing dependency in gomarkdoc.

@ajatprabha
Copy link
Author

I just realised I have been using an older version(v0.2.1), updating it to latest removed the error. Closing the issue!

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

1 participant