You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use goi18n extract on my project that uses generics I'm getting the following error:
10:17: expected '(', found '[' (and 3 more errors)
I'm guessing that is due to the generics type parameters that start with a [ when a regular function would directly have a ( before listing the regular parameters.
I'm guessing this issue comes from /v2/goi18n/extract_command.go:122 parser.ParseFile(fset, "", buf, parser.AllErrors)
Would increasing the version of golang used in this project from go1.12 to go1.18 fix this issue?
I'm guessing then the package go/parser would be able to parse generics correctly.
The text was updated successfully, but these errors were encountered:
When trying to use
goi18n extract
on my project that uses generics I'm getting the following error:I'm guessing that is due to the generics type parameters that start with a
[
when a regular function would directly have a(
before listing the regular parameters.I'm guessing this issue comes from /v2/goi18n/extract_command.go:122
parser.ParseFile(fset, "", buf, parser.AllErrors)
Would increasing the version of golang used in this project from go1.12 to go1.18 fix this issue?
I'm guessing then the package
go/parser
would be able to parse generics correctly.The text was updated successfully, but these errors were encountered: