How do go's len()
and make()
functions work? Since the language lacks support for both generics and function overloading I don't see how func len(v Type) int
is possible. The same goes for func make(Type, size IntegerType) Type
.
I can't seem to find the function in the go source, the closest I've managed to find is this