{"id":49263122,"url":"https://github.com/go-pogo/errors","last_synced_at":"2026-04-25T08:40:08.373Z","repository":{"id":42123462,"uuid":"296396595","full_name":"go-pogo/errors","owner":"go-pogo","description":"Package errors contains additional functions, interfaces and structs for recording stack frames, applying basic formatting, working with goroutines, multiple errors and custom error types.","archived":false,"fork":false,"pushed_at":"2026-03-21T12:10:09.000Z","size":504,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-22T01:52:17.091Z","etag":null,"topics":["error","error-stack","frame","go","golang","multi-error","stacktrace","sync","trace","waitgroup"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-pogo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["roeldev"]}},"created_at":"2020-09-17T17:29:22.000Z","updated_at":"2026-03-21T12:08:50.000Z","dependencies_parsed_at":"2023-12-14T07:27:51.105Z","dependency_job_id":"fb48dcda-1dfd-43a5-b3c5-aeda53831db6","html_url":"https://github.com/go-pogo/errors","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/go-pogo/errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Ferrors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Ferrors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Ferrors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Ferrors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-pogo","download_url":"https://codeload.github.com/go-pogo/errors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Ferrors/sbom","scorecard":{"id":432362,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-pogo/errors","commit":"ef880ca5bd7143fe3fb35f8690a49173e7804aae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/errors/test.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T03:40:48.816Z","repository_id":42123462,"created_at":"2025-08-19T03:40:48.816Z","updated_at":"2025-08-19T03:40:48.816Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32256213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error","error-stack","frame","go","golang","multi-error","stacktrace","sync","trace","waitgroup"],"created_at":"2026-04-25T08:40:07.842Z","updated_at":"2026-04-25T08:40:08.365Z","avatar_url":"https://github.com/go-pogo.png","language":"Go","funding_links":["https://github.com/sponsors/roeldev"],"categories":[],"sub_categories":[],"readme":"errors\n======\n[![Latest release][latest-release-img]][latest-release-url]\n[![Build status][build-status-img]][build-status-url]\n[![Go Report Card][report-img]][report-url]\n[![Documentation][doc-img]][doc-url]\n\n[latest-release-img]: https://img.shields.io/github/release/go-pogo/errors.svg?label=latest\n\n[latest-release-url]: https://github.com/go-pogo/errors/releases\n\n[build-status-img]: https://github.com/go-pogo/errors/actions/workflows/test.yml/badge.svg\n\n[build-status-url]: https://github.com/go-pogo/errors/actions/workflows/test.yml\n\n[report-img]: https://goreportcard.com/badge/github.com/go-pogo/errors\n\n[report-url]: https://goreportcard.com/report/github.com/go-pogo/errors\n\n[doc-img]: https://godoc.org/github.com/go-pogo/errors?status.svg\n\n[doc-url]: https://pkg.go.dev/github.com/go-pogo/errors\n\n\nPackage `errors` contains additional functions, interfaces and structs for\nrecording stack frames, applying basic formatting, working with goroutines,\nmultiple errors and custom error types.\n\nIt is inspired by package `golang.org/x/xerrors` and is designed to be a drop-in\nreplacement for it, as well as the standard library's `errors` package.\n\nThe `errors.New` and `errors.Errorf` functions create errors whose content is a\ntext message and whom can trace stack frames. `errors.Wrap` and `errors.Wrapf`\ncreate errors by wrapping an existing error with a similar error like\n`errors.New` and `errors.Errorf`.\n\n```sh\ngo get github.com/go-pogo/errors\n```\n\n```go\nimport \"github.com/go-pogo/errors\"\n```\n\n## `Msg`\nInstead of defining error messages as global variables, it is possible to define\nthem as constants using `errors.Msg`.\n\n```go\nconst ErrSomethingWentWrong errors.Msg = \"something went wrong\"\n```\n\n## Formatting\nWrap an existing error with `errors.WithFormatter` to upgrade the error to\ninclude basic formatting.\nFormatting is done using `xerrors.FormatError` and thus the same verbs are\nsupported. Any error created with this package implements the `fmt.Formatter`\nand `xerrors.Formatter` interfaces.\n\n```go\nfmt.Printf(\"%+v\", errors.WithFormatter(err))\n```\n\n## Stack tracing\nEvery error can track stack trace information. Just wrap it with\n`errors.WithStack` and a complete stack trace is captured.\n\n```go\nerr = errors.WithStack(err)\n```\n\nAn `errors.StackTrace` can be retrieved using `errors.GetStackTrace`.\nPrinting the error results in a trace similar to:\n\n\tinvalid character 'i' looking for beginning of value:\n\t\tgithub.com/go-pogo/errors.ExampleWithStack\n\t\t\t/path/to/errors/examples_trace_test.go:43\n\t\tgithub.com/go-pogo/errors.ExampleWithStack.func1\n\t\t\t/path/to/errors/examples_trace_test.go:40\n\n## Disable stack tracing\nStack tracing comes with a performance cost. For production environments this\ncost can be undesirable. To disable stack tracing, compile your Go program with\nthe \"notrace\" tag.\n\n```sh\ngo build -tags=notrace\n```\n\n## Catching panics\nA convenient function is available to catch panics and store them as an error.\n\n```go\nvar err error\ndefer errors.CatchPanic(\u0026err)\n```\n\n## Backwards compatibility\n`Unwrap`, `Is` and `As` are backwards compatible with the standard library's \n`errors` package and act the same.\n\n## Documentation\nAdditional detailed documentation is available at [pkg.go.dev][doc-url]\n\n## Created with\n\u003ca href=\"https://www.jetbrains.com/?from=go-pogo\" target=\"_blank\"\u003e\u003cimg src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/GoLand_icon.png\" width=\"35\" /\u003e\u003c/a\u003e\n\n## License\nCopyright © 2019-2026 [Roel Schut](https://roelschut.nl). All rights reserved.\n\nThis project is governed by a BSD-style license that can be found in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-pogo%2Ferrors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-pogo%2Ferrors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-pogo%2Ferrors/lists"}