{"id":43786073,"url":"https://github.com/coditory/go-errors","last_synced_at":"2026-02-05T19:04:01.338Z","repository":{"id":144887457,"uuid":"616543206","full_name":"coditory/go-errors","owner":"coditory","description":"Wrapper for go errors","archived":false,"fork":false,"pushed_at":"2026-01-12T11:45:41.000Z","size":58,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T19:25:58.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coditory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":["coditory"]}},"created_at":"2023-03-20T15:37:02.000Z","updated_at":"2026-01-12T11:45:44.000Z","dependencies_parsed_at":"2024-03-25T10:55:41.413Z","dependency_job_id":"76cfc520-0f4c-473b-bbb7-f9b45c05b876","html_url":"https://github.com/coditory/go-errors","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/coditory/go-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgo-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgo-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgo-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgo-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditory","download_url":"https://codeload.github.com/coditory/go-errors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgo-errors/sbom","scorecard":{"id":298338,"data":{"date":"2025-08-11","repo":{"name":"github.com/coditory/go-errors","commit":"f79ebed4589a18a4dcfba0f20545ba69404e3248"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 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":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/dependabot.yml:11","Info: jobLevel 'contents' permission set to 'read': .github/workflows/labeler.yml:9","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/dependabot.yml:1","Warn: no topLevel permission defined: .github/workflows/labeler.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1"],"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":"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/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/labeler.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/labeler.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/coditory/go-errors/stale.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 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":"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: MIT 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":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/coditory/.github/SECURITY.md:1","Info: Found linked content: github.com/coditory/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/coditory/.github/SECURITY.md:1"],"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 23 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-17T20:05:52.199Z","repository_id":144887457,"created_at":"2025-08-17T20:05:52.199Z","updated_at":"2025-08-17T20:05:52.199Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-02-05T19:04:01.259Z","updated_at":"2026-02-05T19:04:01.324Z","avatar_url":"https://github.com/coditory.png","language":"Go","readme":"# Coditory - Go Errors\n[![GitHub release](https://img.shields.io/github/v/release/coditory/go-errors.svg)](https://github.com/coditory/go-errors/releases)\n[![Go Reference](https://pkg.go.dev/badge/github.com/coditory/go-errors.svg)](https://pkg.go.dev/github.com/coditory/go-errors)\n[![Go Report Card](https://goreportcard.com/badge/github.com/coditory/go-errors)](https://goreportcard.com/report/github.com/coditory/go-errors)\n[![Build Status](https://github.com/coditory/go-errors/workflows/Build/badge.svg?branch=main)](https://github.com/coditory/go-errors/actions?query=workflow%3ABuild+branch%3Amain)\n[![Coverage](https://codecov.io/gh/coditory/go-errors/branch/main/graph/badge.svg?token=EPRs5LiPje)](https://codecov.io/gh/coditory/go-errors)\n\n**🚧 This library as under heavy development until release of version `1.x.x` 🚧**\n\n\u003e Wrapper for Go errors that prints error causes with theis stack traces.\n\n- Prints stacks traces from all of the causes\n- Shortens file paths and function names for readability\n- Supports and exports `errors.Is`, `errors.As`, `errors.Unwrap`\n\n# Getting started\n\n## Installation\nGet the dependency with:\n```sh\ngo get github.com/coditory/go-errors\n```\n\nand import it in the project:\n```go\nimport \"github.com/coditory/go-errors\"\n```\n\nThe exported package is `errors`, basic usage:\n```go\nimport \"github.com/coditory/go-errors\"\n\nfunc main() {\n    err := foo()\n    fmt.Println(\"Error with stack trace:\")\n    fmt.Println(errors.Format(err))\n\n    stderr := fmt.Errorf(\"std error\")\n    fmt.Println(\"Go std error:\")\n    fmt.Println(errors.Format(stderr))\n}\n\nfunc foo() error {\n    err := bar()\n    return errors.Wrap(err, \"foo failed\")\n}\n\nfunc bar() error {\n    return errors.New(\"bar failed\")\n}\n```\n\nOutput:\n\n```\nError with stack trace:\nfoo failed\n    ./pkg/samples.go:34\n        main.foo\n    ./pkg/samples.go:10\n        main.main\n    go1.20.2/rc/runtime/proc.go:250\n        runtime.main\n    go1.20.2/rc/runtime/asm_amd64.s:1598\n        runtime.goexit\ncaused by: bar failed\n    ./pkg/samples.go:38\n        main.bar\n    ./pkg/samples.go:33\n        main.foo\n    ./pkg/samples.go:10\n        main.main\n    go1.20.2/rc/runtime/proc.go:250\n        runtime.main\n    go1.20.2/rc/runtime/asm_amd64.s:1598\n        runtime.goexit\n\nGo std error:\nstd error\n```\n\n## Verbosity levels\n\nErrors can be formatted with different verbosity levels with:\n\n```go\nfmt.Println(errors.Formatv(err), verbosity)\n\n...or by changing the global verbosity level:\nerrors.Config.Verbosity = 5\n```\n\nThe default verbosity level is 5.\n\nVerbosity level samples generated with `go run ./samples`:\n```\n\u003e\u003e\u003e Format: 0\nfoo failed\n\n\u003e\u003e\u003e Format: 1\nfoo failed\ncaused by: bar failed\n\n\u003e\u003e\u003e Format: 2\nfoo failed\n\tmain.foo():19\n\tmain.main():10\n\truntime.main():250\n\truntime.goexit():1598\ncaused by: bar failed\n\tmain.bar():23\n\tmain.foo():18\n\tmain.main():10\n\truntime.main():250\n\truntime.goexit():1598\n\n\u003e\u003e\u003e Format: 3\nfoo failed\n\t./samples.go:19\n\t./samples.go:10\n\tgo1.20.2/rc/runtime/proc.go:250\n\tgo1.20.2/rc/runtime/asm_amd64.s:1598\ncaused by: bar failed\n\t./samples.go:23\n\t./samples.go:18\n\t./samples.go:10\n\tgo1.20.2/rc/runtime/proc.go:250\n\tgo1.20.2/rc/runtime/asm_amd64.s:1598\n\n\u003e\u003e\u003e Format: 4\nfoo failed\n\t./samples.go:19 foo()\n\t./samples.go:10 main()\n\tgo1.20.2/rc/runtime/proc.go:250 main()\n\tgo1.20.2/rc/runtime/asm_amd64.s:1598 goexit()\ncaused by: bar failed\n\t./samples.go:23 bar()\n\t./samples.go:18 foo()\n\t./samples.go:10 main()\n\tgo1.20.2/rc/runtime/proc.go:250 main()\n\tgo1.20.2/rc/runtime/asm_amd64.s:1598 goexit()\n\n\u003e\u003e\u003e Format: 5\nfoo failed\n\tmain.foo()\n\t\t./samples.go:19\n\tmain.main()\n\t\t./samples.go:10\n\truntime.main()\n\t\tgo1.20.2/rc/runtime/proc.go:250\n\truntime.goexit()\n\t\tgo1.20.2/rc/runtime/asm_amd64.s:1598\ncaused by: bar failed\n\tmain.bar()\n\t\t./samples.go:23\n\tmain.foo()\n\t\t./samples.go:18\n\tmain.main()\n\t\t./samples.go:10\n\truntime.main()\n\t\tgo1.20.2/rc/runtime/proc.go:250\n\truntime.goexit()\n\t\tgo1.20.2/rc/runtime/asm_amd64.s:1598\n\n\u003e\u003e\u003e Format: 6\nfoo failed\n\t./samples.go:19\n\t\tfoo()\n\t./samples.go:10\n\t\tmain()\n\tgo1.20.2/rc/runtime/proc.go:250\n\t\tmain()\n\tgo1.20.2/rc/runtime/asm_amd64.s:1598\n\t\tgoexit()\ncaused by: bar failed\n\t./samples.go:23\n\t\tbar()\n\t./samples.go:18\n\t\tfoo()\n\t./samples.go:10\n\t\tmain()\n\tgo1.20.2/rc/runtime/proc.go:250\n\t\tmain()\n\tgo1.20.2/rc/runtime/asm_amd64.s:1598\n\t\tgoexit()\n\n\u003e\u003e\u003e Format: 7\nfoo failed\n\t/Users/mendlik/Development/go/go-errors/samples/samples.go:19\n\t\tmain.foo()\n\t/Users/mendlik/Development/go/go-errors/samples/samples.go:10\n\t\tmain.main()\n\t/Users/mendlik/.sdkvm/sdk/go/1.20.2/src/runtime/proc.go:250\n\t\truntime.main()\n\t/Users/mendlik/.sdkvm/sdk/go/1.20.2/src/runtime/asm_amd64.s:1598\n\t\truntime.goexit()\ncaused by: bar failed\n\t/Users/mendlik/Development/go/go-errors/samples/samples.go:23\n\t\tmain.bar()\n\t/Users/mendlik/Development/go/go-errors/samples/samples.go:18\n\t\tmain.foo()\n\t/Users/mendlik/Development/go/go-errors/samples/samples.go:10\n\t\tmain.main()\n\t/Users/mendlik/.sdkvm/sdk/go/1.20.2/src/runtime/proc.go:250\n\t\truntime.main()\n\t/Users/mendlik/.sdkvm/sdk/go/1.20.2/src/runtime/asm_amd64.s:1598\n\t\truntime.goexit()\n\n```\n","funding_links":["https://github.com/sponsors/coditory"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgo-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditory%2Fgo-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgo-errors/lists"}