Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codo2
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
codo2
11y ago
It's not a critique but a suggestion. Like you are saying, it is not an error, my suggestion is simply to follow the standard library. From golang.org Effective Go: "In the Go libraries, you'll find that when an if statement
2.
▲
by
codo2
11y ago
To make the code simpler to read, I would suggest removing a bunch of "else {", like the ones on lines 84, 112 and 119 of main.go. When you have something like: if err != nil { return err } you don't need to put a else afte