/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

grosser.it
| | golangbot.com
3.9 parsecs away

Travel
| | This tutorial discusses how to wrap errors in Go. It also teaches how to use the Is and As functions from the error package.
| | www.4async.com
3.0 parsecs away

Travel
| | golang/x/exp?xerrors?golang/x/exp?errors?\nPackage errors implements functions to manipulate errors. This package implements the Go 2 draft designs for error inspection and printing ?github.com/pkg/errors?\n?error? ?github.com/pkg/errors?Go?\npackage main import ( "fmt" "golang.org/x/exp/xerrors" ) func raiseError() error { return xerrors.New("a new error") } func main() { err := xerrors.Errorf("raiseError: %w", raiseError()) fmt.Println(err) } ?\nraiseError: a new error ?github.com/pkg/errors?xerrors.Errorf?errors.Wrap? ?%w?\n?Is?As?Opaque?Unwrap?\nvar ( ErrBase = xerrors.New("a new error") ) func main() { err := xerrors.Errorf("raiseError: %w", ErrBase) fmt.Println(ErrBase == ErrBase) // fmt.Println(err == ErrBase) // ?ErrBase? fmt.Println(xerrors.Is(err, ...
| | dave.cheney.net
3.0 parsecs away

Travel
| | [AI summary] The author discusses updates to the errors package, focusing on automatic stack trace collection and the introduction of the %+v format verb for debugging.
| | boonaree.wordpress.com
6.8 parsecs away

Travel
| This is the excerpt for your very first post.