HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
go-errors
errors
Go2017–2017
go-errors / errors

errors

errors with stacktraces for go

2Distinct people
2Mentions
0Explicit recommenders
1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

errors with stacktraces for go

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2017-12-06 01:48:08 UTC to 2017-12-06 16:56:45 UTC.

012017-12-06 01:00:00 UTC to 2017-12-06 02:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsDec 6, 01:002017-12-06 02:00:00 UTC to 2017-12-06 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 03:00:00 UTC to 2017-12-06 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 04:00:00 UTC to 2017-12-06 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 05:00:00 UTC to 2017-12-06 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 06:00:00 UTC to 2017-12-06 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 07:00:00 UTC to 2017-12-06 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 08:00:00 UTC to 2017-12-06 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsDec 6, 08:002017-12-06 09:00:00 UTC to 2017-12-06 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 10:00:00 UTC to 2017-12-06 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 11:00:00 UTC to 2017-12-06 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 12:00:00 UTC to 2017-12-06 13:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 13:00:00 UTC to 2017-12-06 14:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 14:00:00 UTC to 2017-12-06 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 15:00:00 UTC to 2017-12-06 16:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-12-06 16:00:00 UTC to 2017-12-06 17:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsDec 6, 16:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Dec 6, 01:002017-12-06 01:00:00 UTC2017-12-06 02:00:00 UTC101
Dec 6, 02:002017-12-06 02:00:00 UTC2017-12-06 03:00:00 UTC000
Dec 6, 03:002017-12-06 03:00:00 UTC2017-12-06 04:00:00 UTC000
Dec 6, 04:002017-12-06 04:00:00 UTC2017-12-06 05:00:00 UTC000
Dec 6, 05:002017-12-06 05:00:00 UTC2017-12-06 06:00:00 UTC000
Dec 6, 06:002017-12-06 06:00:00 UTC2017-12-06 07:00:00 UTC000
Dec 6, 07:002017-12-06 07:00:00 UTC2017-12-06 08:00:00 UTC000
Dec 6, 08:002017-12-06 08:00:00 UTC2017-12-06 09:00:00 UTC000
Dec 6, 09:002017-12-06 09:00:00 UTC2017-12-06 10:00:00 UTC000
Dec 6, 10:002017-12-06 10:00:00 UTC2017-12-06 11:00:00 UTC000
Dec 6, 11:002017-12-06 11:00:00 UTC2017-12-06 12:00:00 UTC000
Dec 6, 12:002017-12-06 12:00:00 UTC2017-12-06 13:00:00 UTC000
Dec 6, 13:002017-12-06 13:00:00 UTC2017-12-06 14:00:00 UTC000
Dec 6, 14:002017-12-06 14:00:00 UTC2017-12-06 15:00:00 UTC000
Dec 6, 15:002017-12-06 15:00:00 UTC2017-12-06 16:00:00 UTC000
Dec 6, 16:002017-12-06 16:00:00 UTC2017-12-06 17:00:00 UTC101

What Hacker News says

2 sources
>> Not only do you constantly have to wrap and unwrap potential error values to >> unify different error types > > This is a legitimate issue, although in Haskell you can use one error type > like Go does if you want to. SomeException is pretty much equivalent to Go's error, but it's not commonly returned by libraries and such so using it barely helps with the need to convert often. In addition all the types used by libraries as error values now need to have Exception implemented, which they don't. So, in practice, no, you cannot. Or rather, it wouldn't solve the core problem and create a new one. >> And as if that wasn't bad enough, there are also actual throw/catch-style >> exceptions, which are not checked in anyway > > This is also the case in Go (panics and recover). True, panic/recover exist, but in practice I find them to be more a
Read the rest
kin to setjmp/longjmp in C than throw/catch-style exceptions in other languages. Off the top of my head I can't recall a case where I had to recover from a panic that I didn't create in my own code (i.e. originated in a library call). Exceptions in Haskell and other languages on the other hand are usually all over the place (ok, usually not in pure code in Haskell) and I feel like I have to constantly keep them in mind to avoid letting one slip through the seams and then later having to track down where the hell that one came from. >> I stopped writing Haskell maybe a year ago, but at least back then getting >> GHC to print a stack trace when an exception wasn't caught was a major feat >> that involved recompiling every single one of your hundreds of dependencies >> with profiling flags. > > This is also the case in Go. Errors do not retain anything about their state. > You need to use a package like https://github.com/go-errors/errors, which has > the exact same issue you describe with dependencies. That's fair and indeed it would often be handy to know where an error came from. But since errors are just return values I don't really expect them to have a stack trace attached to them, just like I don't expect any other value to have that. It would still be neat for debugging sometimes, more so for errors than other values. I think there are some proposals for improving on this in Go 2. What really frustrated me about Haskell though was debugging throw/catch-style exceptions without a stack trace, because I basically had zero clues about where it came from and there were no clear paths to trace in the code. In Go on the other hand, errors don't just plop up from out of nowhere and panics, which can, print a nice stack trace when not recovered from.
In Why I love Go
> Not only do you constantly have to wrap and unwrap potential error values to unify different error types This is a legitimate issue, although in Haskell you can use one error type like Go does if you want to. > And as if that wasn't bad enough, there are also actual throw-catch-style exceptions, which are not checked in anyway This is also the case in Go (panics and recover). > I stopped writing Haskell maybe a year ago, but at least back then getting GHC to print a stack trace when an exception wasn't caught was a major feat that involved recompiling every single one of your hundreds of dependencies with profiling flags. This is also the case in Go. Errors do not retain anything about their state. You need to use a package like https://github.com/go-errors/errors, which has the exact same issue you describe with dependencies.
In Why I love Go

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.