Hello. I started to study Go and started to interest such a topic: let's say I want to implement a data structure (in the code it is a certain struct ) in which slice will be stored, the type of elements of which is not known in advance, and write methods for it that will work with a slice, the type of elements which is unknown in advance. Is it possible? If, say, to make a cut of empty interfaces. If not, is it possible to solve such a thing on Go?
|
sortpackage is implemented. - user227465