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
Currently Results() returns a slice of []T where perhaps a way to get the "original" type of the elements would be more convenient. I constantly find myself having to iterate over the []T to copy all elements to a new slice.
It is technically not possible to return a []Film from the Results() method due to type system restrictions in Go language. There are similar packages such as https://clipperhouse.github.io/gen/ that generate code for your types, which can achieve what you want.
Currently
Results()
returns a slice of[]T
where perhaps a way to get the "original" type of the elements would be more convenient. I constantly find myself having to iterate over the[]T
to copy all elements to a new slice.Here
x
is of type[]T
and so I cannot reassign it tof.Films
. I need to do the following:I find myself doing this kind of thing very often when using your package. Perhaps there should be a way to do this included in the package itself?
The text was updated successfully, but these errors were encountered: