A better way to deal with errors in Golang Posted on August 30, 2023October 4, 2023 by A-yon The following kind of code has always annoyed me: typical flows of returning errors But now I’ve finally found a way to write more efficient code: catch errors automatically and seamlessly Check this package for more sugar tricks: https://pkg.go.dev/github.com/ayonli/goext