3 ms·
If your package exports a single type only, New is more appropriate, if it exports multiple types, you should use NewObject: http://golang.org/doc/effective_g
by DrJokepu 13y ago
If your package exports a single type only, New is more appropriate, if it exports multiple types, you should use NewObject:
http://golang.org/doc/effective_go.html#names http://golang.org/doc/effective_go.html#names