Thank you very much for you replies.
1. Yes, I wanted to avoid type switches (in different modules).
2. "myType" is a placeholder for more complex types, and the type "Compare"
is only the the first in a row. The goal is some kind of a "contain"
operation over lists of different objects (thats
Thank you very much, for your replies. I think noe I maybe understand the
problem a lot better.
1. Yes I wanted to avoid type switches, escpacially in different modules.
2. "myType" ist a placeholder for a complext struct, and the comparison
operators are only the basics. The goal are "contain"
hi there,
and first of all sorry that i couldn't find the answer by myself here. I
tried to improve some of my code with general interface definitions. They
should work like macros for different types of variables. Here is my
reduced example and the question - how should this be done in go the