{"id":16881561,"url":"https://github.com/benbjohnson/stack","last_synced_at":"2025-04-11T11:45:28.320Z","repository":{"id":57547506,"uuid":"302682213","full_name":"benbjohnson/stack","owner":"benbjohnson","description":"Go debug/stack utility functions.","archived":false,"fork":false,"pushed_at":"2020-10-09T17:36:19.000Z","size":5,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T21:05:50.168Z","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/benbjohnson.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}},"created_at":"2020-10-09T15:30:46.000Z","updated_at":"2024-09-17T17:57:15.000Z","dependencies_parsed_at":"2022-09-26T18:40:52.012Z","dependency_job_id":null,"html_url":"https://github.com/benbjohnson/stack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benbjohnson","download_url":"https://codeload.github.com/benbjohnson/stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248387813,"owners_count":21095277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-13T16:03:50.312Z","updated_at":"2025-04-11T11:45:28.304Z","avatar_url":"https://github.com/benbjohnson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stack\n\nGo debug/stack utility functions and command line interfaces.\n\n\n## CLI\n\n### stack-minify\n\nThe `stack-minify` CLI command accepts text through STDIN and converts all lines\nwhich have a two-line stack entry format to a single-line minified format.\n\n```sh\n$ cat mystack.txt | stack-minify\n```\n\n\n### Utility functions\n\n## Minify()\n\nThe `stack.Minify()` function accepts the output of `debug.Stack()` and returns\na compact version that shows one stack entry per line. Function variables and\noffsets are removed so it only shows the package, function, filename, \u0026 line\nnumber.\n\n```\nstack.Minify(debug.Stack())\n```\n\n```\nInput:\n\ngoroutine 61 [running]:\nruntime/debug.Stack(0xd, 0xd, 0x4f44328)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x9d\ngithub.com/benbjohnson/stack/v2/foo.(*Bar).baz(0xc000c6a5b0, 0x4e00001, 0x0, 0x0, 0x0)\n\t/src/stack/benbjohnson/stack/foo.go:579 +0x7e\n```\n\n```\nOutput:\n\ngoroutine 61 [running]:\nruntime/debug.Stack(): stack.go:24\ngithub.com/benbjohnson/stack/v2/foo.(*Bar).baz(): foo.go:579\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Fstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenbjohnson%2Fstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Fstack/lists"}