loading...

re: How can I learn to like Golang? (and use it a lot) VIEW POST

FULL DISCUSSION
 

"go mod vendor" vendors packages.

Since go 1.11 you don't need to use the gopath.

Why would you want to nil a variable? Use the zero value... That's what it's for.

You gripes come from some misunderstandings.

 

Why would you want to nil a variable? Use the zero value... That's what it's for.

Of course, so that's how it is designed, right?

I still dislike GoDoc style and integration with VSCode is not as powerful and color as JSDoc or JavaDoc. Even RustDoc's /// feels better.

GoDoc hates multiline commented markdown, to be exact.

If you view this in VSCode, it will be broken -- towardsdatascience.com/setting-up-...

 

I mean, yeah Godoc doesn't support markdown, but I argue that's a good thing. Comments should be brief and to the point, not formatted novels

+1. If your code needs multi-paragraph comments, I think your code probably needs to be clarified.

code of conduct - report abuse