6 ms·
That too, but I rather meant predeclared named types. According to Go specification, types that you define with "type Name OldName" are named, but "int", "strin
by wowoc 10y ago
That too, but I rather meant predeclared named types. According to Go specification, types that you define with "type Name OldName" are named, but "int", "string" and the rest are named too. Go disallows declaring methods on predeclared types.
https://golang.org/ref/spec#Types https://golang.org/ref/spec#Types