Working on store/ruler which have a lot of basic type optionals, I think having something like this would really help avoid bunch of typecasts and nil-checks in builder logic
I kind of user generic as something like this feels ideal for that. But can do same with interface{} as well, just need to jump through some reflect pkg hoops
Working on store/ruler which have a lot of basic type optionals, I think having something like this would really help avoid bunch of typecasts and nil-checks in builder logic
I kind of user generic as something like this feels ideal for that. But can do same with interface{} as well, just need to jump through some reflect pkg hoops