5 ms·
> Use `New` instead - it's the idiomatic name for a constructor in Go. Where do you get this from? I've tried unsuccessfully to find such naming/design guideli
by kesslern 5y ago
> Use `New` instead - it's the idiomatic name for a constructor in Go.
Where do you get this from? I've tried unsuccessfully to find such naming/design guidelines.
- dbaggerman 5y agoIt's noted in the Effective Go guide: https://go.dev/doc/effective_go#package-names https://go.dev/doc/effective_go#package-names