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) + } +}