Open pablote opened 4 years ago
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)
}
This is what I'm trying to do, works fine for simple types, but fails with slices:
thanks