← Back to blog

Go Doesn't Have Constructors, Just a Naming Convention

Go has no constructor keyword or new syntax, so the language leans on a plain function that returns a pointer, named NewX by convention.

Written by Denys Dovzhenko