generic
Declare two simple non-generic functions, then capture the same logic in a single generic function.
Declare two simple non-generic functions, then capture the same logic in a single generic function.
go get github.com/qianjinxu/generic
Declare two simple non-generic functions, then capture the same logic in a single generic function.