Explore >> Select a destination


You are here

dave.cheney.net
| | www.joeshaw.org
4.8 parsecs away

Travel
| | Decoding all those hex values
| | www.4async.com
3.8 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???????????????????????...
| | grosser.it
3.0 parsecs away

Travel
| | Why go does not have nice backtraces Collecting stacktraces is expensive, so the core language will never implement them for everything.If you need your code to be highly performant then consider making a error wrapper that can be turned on/off based on a environment variable. Simple fix import github.com/pkg/errors and use it instead of errors...
| | reperiendi.wordpress.com
9.2 parsecs away

Travel
| Visit the post for more.