Directories ¶ Show internal Expand all Path Synopsis examples 03-go-errors-concept/byte-buffer-initial 03-go-errors-concept/byte-buffer-with-errors 03-go-errors-concept/cancellation-cause 03-go-errors-concept/error-formatting 03-go-errors-concept/error-with-stacktrace 03-go-errors-concept/error-with-stacktrace-opaque 03-go-errors-concept/errorf-1 03-go-errors-concept/errorf-2 03-go-errors-concept/errorf-3 03-go-errors-concept/errorf-4 03-go-errors-concept/errors-is-and-v 03-go-errors-concept/file-load-err 03-go-errors-concept/file-load-err-wrap 03-go-errors-concept/no-wrap-pain 03-go-errors-concept/opaque-errors 03-go-errors-concept/single-unwrap 03-go-errors-concept/users-sort 04-non-standard-modules/cockroach-combine-errors 04-non-standard-modules/cockroach-expensive-stack 04-non-standard-modules/cockroach-grpc 04-non-standard-modules/cockroach-grpc/middleware 04-non-standard-modules/cockroach-grpc/status 04-non-standard-modules/cockroach-if 04-non-standard-modules/cockroach-is-any 04-non-standard-modules/cockroach-is-any-bug 04-non-standard-modules/cockroach-mark 04-non-standard-modules/cockroach-mark-gotcha 04-non-standard-modules/cockroach-unwrap 04-non-standard-modules/cockroach-with-secondary-error 04-non-standard-modules/cockroach-wrap 04-non-standard-modules/emperror-filtering 04-non-standard-modules/emperror-logging 04-non-standard-modules/emperror-panic-and-recover/client-server/client 04-non-standard-modules/emperror-panic-and-recover/client-server/server 04-non-standard-modules/emperror-panic-and-recover/simple 04-non-standard-modules/hachicorp-multierror-vs-errors-join 04-non-standard-modules/hashicorp-multierror 04-non-standard-modules/pkg-expensive-stack-new 04-non-standard-modules/pkg-expensive-stack-wrap 04-non-standard-modules/pkg-expensive-stack-wrap-with-msg 04-non-standard-modules/pkg-new 04-non-standard-modules/pkg-wrap 04-non-standard-modules/pkg-wrap-in-diff-ways 04-non-standard-modules/pkg-wrap-vs-fmt-1 04-non-standard-modules/pkg-wrap-vs-fmt-2 04-non-standard-modules/pkg-wrap-vs-fmt-3 04-non-standard-modules/pkg-wrap-vs-fmt-4 04-non-standard-modules/pkg-wrap-with-message 04-non-standard-modules/uber-multierr-append-invoke 04-non-standard-modules/uber-multierr-vs-errors-join 05-errors-best-practices/api-borders 05-errors-best-practices/concurrent-event-publishing 05-errors-best-practices/constant-errors 05-errors-best-practices/constant-errors-diff-pkgs 05-errors-best-practices/constant-errors-diff-pkgs/common 05-errors-best-practices/constant-errors-diff-pkgs/pkga 05-errors-best-practices/constant-errors-diff-pkgs/pkgb 05-errors-best-practices/constant-errors-problem 05-errors-best-practices/constant-errors-problem/dirtyhacker 05-errors-best-practices/constant-errors-rsa-example 05-errors-best-practices/equal-err-text 05-errors-best-practices/exec-err-pain 05-errors-best-practices/gofmt-rewrite-rules 05-errors-best-practices/gotcha-err-iface 05-errors-best-practices/gotcha-func-call 05-errors-best-practices/govet-erroras 05-errors-best-practices/idempotent-bufio-writer-flush 05-errors-best-practices/idempotent-http-server-listen 05-errors-best-practices/naming 05-errors-best-practices/not-found-error 05-errors-best-practices/not-found-error-constructor 05-errors-best-practices/railway-bufio-writer 05-errors-best-practices/resp-body-close 05-errors-best-practices/resp-body-close-func 05-errors-best-practices/ruleguard-wrap 05-errors-best-practices/ruleguard-wrap/gorules 05-errors-best-practices/shadowed-err-1 05-errors-best-practices/shadowed-err-2 05-errors-best-practices/status-error 05-errors-best-practices/std-no-pointers 05-errors-best-practices/user-registration-request-monad-1 05-errors-best-practices/user-registration-request-monad-2 05-errors-best-practices/user-registration-request-multierr 05-errors-best-practices/write-resp-err-conn 05-errors-best-practices/write-resp-err-log-func 05-errors-best-practices/write-resp-err-log-wrapper 05-errors-best-practices/write-to-file 06-working-with-errors-in-tests/deepequal 06-working-with-errors-in-tests/parse-token-init 06-working-with-errors-in-tests/parse-token-with-sentinels 06-working-with-errors-in-tests/strconv-errors 07-working-with-errors-in-concurrency/cats-unmarshalling 07-working-with-errors-in-concurrency/cats-unmarshalling-err-channel 07-working-with-errors-in-concurrency/cats-unmarshalling-err-container 07-working-with-errors-in-concurrency/cats-unmarshalling-err-envelope 07-working-with-errors-in-concurrency/errgroup-limited 07-working-with-errors-in-concurrency/errgroup-multiple-errors 07-working-with-errors-in-concurrency/errgroup-simple-example 07-working-with-errors-in-concurrency/errgroup-try-go 07-working-with-errors-in-concurrency/errgroup-with-context 07-working-with-errors-in-concurrency/errgroup-with-context-diff-parent 07-working-with-errors-in-concurrency/hashicorp-multierror-group 07-working-with-errors-in-concurrency/waitgroup-simple-example 08-future-of-errors-in-go2/check-handle 08-future-of-errors-in-go2/copy-file 08-future-of-errors-in-go2/error-printing 08-future-of-errors-in-go2/try tasks 03-go-errors-concept/allocator 03-go-errors-concept/ast-pain 03-go-errors-concept/broken-chain 03-go-errors-concept/byte-reader-byte-writer 03-go-errors-concept/error-embedding 03-go-errors-concept/error-types 03-go-errors-concept/errorf-on-steroids 03-go-errors-concept/errors-as 03-go-errors-concept/errors-factory 03-go-errors-concept/errors-is 03-go-errors-concept/errors-is-via-errors-as 03-go-errors-concept/extract 03-go-errors-concept/file-load-err 03-go-errors-concept/fix-opaque-errors 03-go-errors-concept/from-error-to-error 03-go-errors-concept/handling-error-types 03-go-errors-concept/handling-opaque-errors 03-go-errors-concept/handling-sentinel-errors 03-go-errors-concept/handmade-stack 03-go-errors-concept/safe-factorial 03-go-errors-concept/unwrap-loop 03-go-errors-concept/validation-errors 03-go-errors-concept/with-time-error 04-non-standard-modules/cause-and-is 04-non-standard-modules/cockroach-different-wraps 04-non-standard-modules/combine-errors 04-non-standard-modules/deepest-stacktrace 04-non-standard-modules/handmade-stacktrace 04-non-standard-modules/hashicorp-multierror-gotcha-1 04-non-standard-modules/hashicorp-multierror-gotcha-2 04-non-standard-modules/hashicorp-multierror-gotcha-3 04-non-standard-modules/hashicorp-multierror-replacement 04-non-standard-modules/is-any 04-non-standard-modules/pkg-errors-wrap-nil-gotcha 04-non-standard-modules/trim-stacktrace 04-non-standard-modules/uber-multierr-append-invoke-defer-gotcha 04-non-standard-modules/uber-multierr-append-invoke-named-gotcha 04-non-standard-modules/wrap-nil 04-non-standard-modules/wrapper 05-errors-best-practices/docker-err 05-errors-best-practices/empty-struct-problem 05-errors-best-practices/empty-struct-problem/pkga 05-errors-best-practices/empty-struct-problem/pkgb 05-errors-best-practices/error-context 05-errors-best-practices/gotcha-err-iface-1 05-errors-best-practices/gotcha-err-iface-3 05-errors-best-practices/http-error 05-errors-best-practices/idempotent-wrap 05-errors-best-practices/json-writer 05-errors-best-practices/json-writer/server 05-errors-best-practices/mini-word 05-errors-best-practices/monad 05-errors-best-practices/pointer-error 05-errors-best-practices/pretty-error 05-errors-best-practices/read-by-chunk 05-errors-best-practices/template-err 05-errors-best-practices/template-err-opaque 06-working-with-errors-in-tests/divide-et-impera 06-working-with-errors-in-tests/get-index-from-filename 06-working-with-errors-in-tests/network-err-mock 06-working-with-errors-in-tests/parse-token-for-security 07-working-with-errors-in-concurrency/cats-unmarshalling-gotcha 07-working-with-errors-in-concurrency/command-executor 07-working-with-errors-in-concurrency/command-executor/mocks 07-working-with-errors-in-concurrency/errgroup-basic-1 07-working-with-errors-in-concurrency/errgroup-basic-2 07-working-with-errors-in-concurrency/errgroup-collector 07-working-with-errors-in-concurrency/errgroup-ctx-cancelling-issue 07-working-with-errors-in-concurrency/errgroup-structure-filling 07-working-with-errors-in-concurrency/errgroup-task-runner 07-working-with-errors-in-concurrency/errgroup-with-context 07-working-with-errors-in-concurrency/hashing-pipeline Click to show internal directories. Click to hide internal directories.