DEV Community

Discussion on: I don't get the point of Golang - That's why I need help

Collapse
 
forestdev profile image
Dominykas Bartkus

I find go a breeze to write and the added performance and goroutines is great. The code structure is much more easy to reason about. Pass by value or pointer, your choice. Especially when seeking performance, one or the other could better as per stack vs. heap allocation. Gives you control to some degree of how you manage the life cycle of your variables.

I also love how they've implemented interfaces: you can only define methods, everything else is up to you how you need to implement it, no need for further strictness. Testing comes out of the box and it works great, no need for 3rd party tools.

Tooling is great, fmt, and everything comes with a strict set of rules that makes it easier to avoid some pitfals. Also, go finally has go.mod, without which go was a bit messy for me module wise, but not the case anymore.

Also, true type safety! Not just a fancy "linter" that does not actually provide safety.

Any project I start now I go with go out of the box. Only might use echo as a basic framework for web servers, as I feel it saves you a bit of time.

I feel I write code faster, with less hassle, and have everything out of the box right there. Compiles fast too.