{"id":17559857,"url":"https://github.com/knsh14/astree","last_synced_at":"2025-04-28T10:49:16.864Z","repository":{"id":44896151,"uuid":"200202344","full_name":"knsh14/astree","owner":"knsh14","description":"tree command for Go AST","archived":false,"fork":false,"pushed_at":"2022-07-30T04:13:40.000Z","size":44,"stargazers_count":13,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T15:16:45.397Z","etag":null,"topics":["abstract-syntax-tree","ast","go","tree-command"],"latest_commit_sha":null,"homepage":"","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/knsh14.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":"2019-08-02T09:00:37.000Z","updated_at":"2023-08-20T23:20:54.000Z","dependencies_parsed_at":"2022-08-25T14:50:19.311Z","dependency_job_id":null,"html_url":"https://github.com/knsh14/astree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fastree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fastree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fastree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knsh14%2Fastree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knsh14","download_url":"https://codeload.github.com/knsh14/astree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251299219,"owners_count":21567176,"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":["abstract-syntax-tree","ast","go","tree-command"],"created_at":"2024-10-21T11:07:59.617Z","updated_at":"2025-04-28T10:49:16.828Z","avatar_url":"https://github.com/knsh14.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"astree\n---\n\ntree command for Go AST\n\n# install\n```\ngo get -u github.com/knsh14/astree/cmd/astree\n```\n\n# options\n\n# Example\nhttps://play.golang.org/p/up3cRnFCm61\n\n```\npackage main\n\nimport (\n\t\"go/parser\"\n\t\"go/token\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/knsh14/astree\"\n)\n\nfunc main() {\n\tcode := `\npackage main\n\nimport (\n\t\"fmt\"\n)\n\nfunc main() {\n\tfmt.Println(\"Hello, playground\")\n}`\n\tfs := token.NewFileSet()\n\tf, err := parser.ParseFile(fs, \"main.go\", code, 0)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tastree.File(os.Stdout, fs, f)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknsh14%2Fastree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknsh14%2Fastree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknsh14%2Fastree/lists"}