~xenrox/aoc2019

ef4b1d271422e418a019af363b8ec2a1be7a1673 — Thorben Günther 4 years ago 903ce30 master
tools: add Check for error handling
1 files changed, 8 insertions(+), 0 deletions(-)

A tools/error.go
A tools/error.go => tools/error.go +8 -0
@@ 0,0 1,8 @@
package tools

// Check is a quick way for error handling
func Check(err error) {
	if err != nil {
		panic(err)
	}
}