Skip to content

Instantly share code, notes, and snippets.

View SkYNewZ's full-sized avatar
🐳
Working from home

Quentin Lemaire SkYNewZ

🐳
Working from home
View GitHub Profile
@SkYNewZ
SkYNewZ / errs.go
Created May 23, 2021 00:40 — forked from grahamking/errs.go
Collect and handle multiple errors in Go
package util
import (
"errors"
"strings"
)
// Errs is an error that collects other errors, for when you want to do
// several things and then report all of them.
type Errs struct {