News for hackers. Stuff that matters.
Re:Error Handling in Go (2016) by kjksf on Friday April 05, 2019 @09:33PM (#19588584)
I just finished porting 50k loc from Java to Go: https://github.com/ravendb/ravendb-go-client

You won't find hundreds of purported simple/easy things that are exclusive to Go code.

There's probably less than 10 cases where I implemented some simple thing (like a set of strings) that Java gave for free because of library function that used generics.

Among 50k loc that's background noise.

Re:Error Handling in Go (2016) by maximente on Saturday April 06, 2019 @12:19AM (#19589212)
don't forget the defer keyword:

from README:

// ... use session session.Close()

can be changed to this right after you get a session:

defer session.Close()