{"id":37822545,"url":"https://github.com/pytimer/astutil","last_synced_at":"2026-01-16T15:43:00.432Z","repository":{"id":57628407,"uuid":"404187298","full_name":"pytimer/astutil","owner":"pytimer","description":"Go ast util","archived":false,"fork":false,"pushed_at":"2021-09-10T10:06:00.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T15:48:03.453Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytimer.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":"2021-09-08T02:36:58.000Z","updated_at":"2021-09-10T10:06:03.000Z","dependencies_parsed_at":"2022-09-26T20:12:03.751Z","dependency_job_id":null,"html_url":"https://github.com/pytimer/astutil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pytimer/astutil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytimer%2Fastutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytimer%2Fastutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytimer%2Fastutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytimer%2Fastutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytimer","download_url":"https://codeload.github.com/pytimer/astutil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytimer%2Fastutil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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-01-16T15:43:00.367Z","updated_at":"2026-01-16T15:43:00.424Z","avatar_url":"https://github.com/pytimer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astutil\n\nGo ast util generate AST by parsing all go file of the project\n\n## Usage\n\n```go\npackage main\n\nimport (\n\tgoparser \"go/parser\"\n\t\"log\"\n\n\t\"github.com/pytimer/astutil\"\n)\n\nfunc main() {\n\tpkgs := astutil.ParseDir(\"./testdata\", []string{\"vendor\"}, goparser.ParseComments)\n\tfor k, pkg := range pkgs {\n\t\tlog.Printf(\"package path: %s, name: %s\\n\", k, pkg.Name)\n\t\tfor _, f := range pkg.Files {\n\t\t\tlog.Printf(\"astFile path: %s package: %s\\n\", f.Path, f.PackagePath)\n\t\t\t// log.Println(f.File)\n\t\t\tlog.Printf(\"comments: %#v\", f.Comments)\n\t\t}\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytimer%2Fastutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytimer%2Fastutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytimer%2Fastutil/lists"}