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
It's a little verbose but we can achieve this "multi-target options" API in a type safe way without relying on generics: https://go.dev/play/p/I8uvFr77PCm
It would be great if generics could do this in a less verbose way though!
(Generic) Functional Options Pattern
https://golang.design/research/generic-option/
The text was updated successfully, but these errors were encountered: