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
check if we can get away without ZeroIfNil but dereference the pointer (I did not found a way at the time, since this snippet prints the address for instance:
x := 123
y := &x
fmt.Printf("%v", y)
but we can keep the ZeroIfNil, this is just a minor check worth of doing
Check if we can refactor some of the methods, similarly to how it was done leveraging func mapTo[S getTypeIder, T any](s S, id int64, convFn func(S) (*T, error)) (*T, error)
The text was updated successfully, but these errors were encountered:
lampajr
added
the
chore
Project management or other issues that are not a bug or feature request
label
Nov 16, 2023
As raised here:
ZeroIfNil
but dereference the pointer (I did not found a way at the time, since this snippet prints the address for instance:but we can keep the ZeroIfNil, this is just a minor check worth of doing
func mapTo[S getTypeIder, T any](s S, id int64, convFn func(S) (*T, error)) (*T, error)
The text was updated successfully, but these errors were encountered: