Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lzap
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
lzap
9mo ago
I like how old-school HN comment section does not care about creepy links at all. Or link for that matter.
2.
▲
by
lzap
4y ago
I was trying to say that eventually, errors in Go distill to strings. Of course the type which represents errors can be anything, I thought it is obvious and it is also mentioned in the introduction section which you may have skipped.
3.
▲
by
lzap
4y ago
Great example, should have known this one.
4.
▲
by
lzap
4y ago
As I said in the article, the example is simplified. As you point out, incorporating the HTTP code into the error and using errors.As is much better way of doing that: "Obviously, the common HTTP status codes could easily be a new erro
5.
▲
by
lzap
4y ago
In the blogpost I specifically wrote "There is no (named) interface in the standard library..." because I was aware of the function you point out. Rather than unexported interface, I would probably call that an "anonymous int
6.
▲
Xterm zen mode
(lukas.zapletalovi.com)
1 points
by
lzap
10y ago
|
0 comments