Hacker GitHub

← All repos

surullabs/fault

View on GitHub ↗ ★ 4 Go

Fault is a tiny library that helps with package internal error handling in Go.

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2014-05-13 · latest 2015-05-21

Mentions per year 3 mentions · busiest year 2014 (2)
20082026
  1. …I usually prefer to not use panic-defer-recover, with if checks providing more clarity. [1] https://github.com/surullabs/fault [2] http://golang.org/doc/effective_go.html#recover
  2. …allows for better documentation where API users know what failure modes to expect. [1] https://godoc.org/github.com/surullabs/fault [2] https://golang.org/doc/effective_go.html#recover
    comment by vendakka · 2014-12-07 · in When in Go, do as Gophers do
  3. …trace wrapper I couldn't remember the name. I ended up adding a function to an error library I maintain (github.com/surullabs/fault). When I find some time I'll pull out my code and start using either errgo or the SpaceMonkey version.
    comment by vendakka · 2014-05-13 · in Open-Source Go Libraries