Fri, May 29, 2020
How can I learn to like Golang? (and use it a lot)
Well, I did complain, in order to change my point-of-view,
I don't Golang because,
- I cannot set
nil
a variable (unless it is a pointer, but not sure if it is recommended to do so?) - GoDoc is restricted to
//
and isn't Markdown friendly.gofmt
doesn't recognize/** */
.- Actually, VSCode formatter can give colors to JavaDoc/JSDoc styled
/** */
as well.
- Actually, VSCode formatter can give colors to JavaDoc/JSDoc styled
- Centralized
~/go/pkg/packages/github.com/<NAME>/<PROJECT>
structure, instead of my custom~/projects/<PROJECT>
structure- Actually, sometimes it is a monorepo, so
~/projects/<PROJECT>/packages/backend
- Actually, sometimes it is a monorepo, so
- Golang maker don't like vendorizing, like what
node_modules
do.- What do you recommend?
go mod
ordep
?
- What do you recommend?
Rust's Cargo seems to be more happy with me, but it is a different language.
The response for the community is quite helpful.
Tags: golang