In go there are the "init" functions, but those do not return a possible error result.
I guess you're thinking more of package constructor methods, such as NewFoo, which tend to return the new object and an error value.
I guess you're thinking more of package constructor methods, such as NewFoo, which tend to return the new object and an error value.