We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is what I'm trying to do, works fine for simple types, but fails with slices:
package providers import ( "github.com/cheekybits/genny/generic" ) //go:generate genny -in=$GOFILE -out=gen_$GOFILE gen "T=[]string" type T generic.Type type TProvider interface { Get() (T, error) }
thanks
The text was updated successfully, but these errors were encountered:
I believe the "[]" can not be used as part of the function name.
type []StringProvider interface { Get() ([]string, error) }
It works to define a type alias.
type StringSlice []string type StringSliceProvider interface { Get() (StringSlice, error) }
Sorry, something went wrong.
No branches or pull requests
This is what I'm trying to do, works fine for simple types, but fails with slices:
thanks
The text was updated successfully, but these errors were encountered: