It seems that there is no Ranger
interface for ranging over custom types. Is there anything similar? Or do I have to make a method that converts the type to a slice or map?
Edit: of course I could cast x to []struct, but that would make it harder to change the underlying type of x.