goutils/die/README.md

13 lines
191 B
Markdown
Raw Permalink Normal View History

2015-06-10 23:29:52 +00:00
Simple fatal utilities for Go programs.
```
result, err := doSomething()
die.If(err)
ok := processResult(result)
if !ok {
die.With("failed to process result %s", result.Name)
}
```