#Using a generic type as argument to a function
2 messages · Page 1 of 1 (latest)
s has already a fixed generic type T which might not be CarListing. Therefore you can't call s.handleFirstResult with it. Whilst go does support generic types and functions it does not support generic methods.
You could write a generic function to handle this case.