Paul Di Gian
Paul Di Gian's Blog

Paul Di Gian's Blog

Blog Author Picture

Paul Di Gian

19 followers

Golang software development and training.

For information and rates: paul.digi4n@gmail.com

Subscribe to my newsletter and never miss my upcoming articles

Advanced go - Avoiding `if` for initialization using `sync.Once` and foot guns to watch out for

Nov 21, 20218 min read

We already discussed when to use constructors and when let the user of your library initialize their structures. The short version is that if the...