Software Design

Sergio Moya

3 minute read

I’ve been coding in Go for a while now and I would like to add that I’m very happy to have adopted it as one of my daily use programming languages. I haven’t seen much code from other projects except the standard library, but I noticed that most open source projects developed in go don’t follow a common pattern when declaring scopes, specially in the structs. The following code has been extracted from a well known project and it’s been used around the world: