3 ms·
Not necessarily: https://www.google.com/search?q=golang+%22func+New(%22+site%3Agolang.org%2Fpkg https://www.google.com/search?q=golang+%22func+New(%22+site%...
by ihsw 13y ago
Not necessarily: https://www.google.com/search?q=golang+%22func+New(%22+site%3Agolang.org%2Fpkg https://www.google.com/search?q=golang+%22func+New(%22+site%...
- noselasd 13y agoThere's a lot of NewXXX too. The convention is if a package exports only one single type, call it New(...), otherwise call it NewXXX(...)