4 ms·
interface{} is the equivalent of C++17's std::any, of which you can put anything including vector (slice) and maps. If you really want high performance with ma
by dana321 8y ago
interface{} is the equivalent of C++17's std::any, of which you can put anything including vector (slice) and maps.
If you really want high performance with many different types of a function, its a case of copy-paste-modifying your code.
Its a language that is straight-forward, its the antitheisis of tmtowtdi.