3 ms·
It's an implementation of the functional option pattern used a lot in go code. See https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis https
by arankine 6y ago
It's an implementation of the functional option pattern used a lot in go code. See https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis https://dave.cheney.net/2014/10/17/functional-options-for-fr... for a rundown.
- erik_seaberg 6y agoIt's a functor, though the type system doesn't let you write a reusable fmap.