{"id":13559290,"url":"https://github.com/davidrjenni/A","last_synced_at":"2025-04-03T14:31:55.167Z","repository":{"id":57483744,"uuid":"58579328","full_name":"davidrjenni/A","owner":"davidrjenni","description":"A - Go tools for Acme.","archived":false,"fork":false,"pushed_at":"2020-08-15T15:36:25.000Z","size":2646,"stargazers_count":72,"open_issues_count":1,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-08-01T13:16:34.792Z","etag":null,"topics":["acme","go","golang","tool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidrjenni.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":"2016-05-11T20:38:32.000Z","updated_at":"2024-07-29T10:41:05.000Z","dependencies_parsed_at":"2022-08-27T23:21:39.593Z","dependency_job_id":null,"html_url":"https://github.com/davidrjenni/A","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/davidrjenni%2FA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjenni%2FA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjenni%2FA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjenni%2FA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidrjenni","download_url":"https://codeload.github.com/davidrjenni/A/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222978452,"owners_count":17067529,"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":["acme","go","golang","tool"],"created_at":"2024-08-01T13:00:17.132Z","updated_at":"2024-11-04T10:31:25.815Z","avatar_url":"https://github.com/davidrjenni.png","language":"Go","funding_links":[],"categories":["Programs"],"sub_categories":[],"readme":"\u003ch1 align=center\u003e\n\u003cimg src=\"logo/512.svg\" width=25%\u003e\n\u003c/h1\u003e\n\n# A ![CI](https://github.com/davidrjenni/A/workflows/CI/badge.svg?branch=master) [![GoDoc](https://godoc.org/github.com/davidrjenni/A?status.svg)](https://godoc.org/github.com/davidrjenni/A) [![Go Report Card](https://goreportcard.com/badge/github.com/davidrjenni/A)](https://goreportcard.com/report/github.com/davidrjenni/A)\n\nA - Go tools for Acme.\n\n## Installation\n\n```\n% go get github.com/davidrjenni/A\n\n% go get -u golang.org/x/tools/cmd/guru\n% go get -u github.com/zmb3/gogetdoc\n% go get -u github.com/godoctor/godoctor\n% go get -u github.com/josharian/impl\n% go get -u golang.org/x/tools/cmd/gorename\n% go get -u github.com/fatih/gomodifytags\n% go get -u github.com/davidrjenni/reftools/cmd/fillstruct\n% go get -u github.com/davidrjenni/reftools/cmd/fillswitch\n```\n\n## Usage\n\n### Add Struct Tags\n\n```\nA addtags \u003ctags\u003e [options]\n```\nAdds struct tags and tag options to the selected struct fields.\n`\u003ctags\u003e` is a comma-separated list of tags to add, e.g. `json,xml`.\n`[options]` is an optional list of tag options to add, e.g. `'json=omitempty,xml=omitempty'`\nThis command uses `github.com/fatih/gomodifytags`.\nSee it in action [here](https://twitter.com/davidrjenni/status/893130797376516096).\n\n### Callees\n\n```\nA cle \u003cscope\u003e\n```\nShows possible targets of the function call under the cursor.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Callers\n\n```\nA clr \u003cscope\u003e\n```\nShows possible callers of the function under the cursor.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Callstack\n\n```\nA cs \u003cscope\u003e\n```\nShows the path from the callgraph root to the function under the cursor.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Goto Definition\n\n```\nA def\n```\nShows the declaration for the identifier under the cursor.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Describe\n\n```\nA desc\n```\nDescribes the declaration for the syntax under the cursor.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Documentation\n\n```\nA doc\n```\nShows the documentation for the entity under the cursor.\nThis command uses `github.com/zmb3/gogetdoc`.\n\n### Errors\n\n```\nA err \u003cscope\u003e\n```\nShows possible values of the error variable under the cursor.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Extract to Function/Method\n\n```\nA ex \u003cname\u003e\n```\nExtracts the selected statements to a new function/method with name `\u003cname\u003e`.\nThis command uses `github.com/godoctor/godoctor`.\n\n### Fill a Struct Literal with Default Values\n\n```\nA fstruct\n```\nFills the selected struct literal with default values.\nThis command uses `github.com/davidrjenni/reftools/cmd/fillstruct`.\n\n### Fill a (Type) Switch Statement with Case Statements\n\n```\nA fswitch\n```\nFills the selected (type) switch statement with case statements.\nThis command uses `github.com/davidrjenni/reftools/cmd/fillswitch`.\n\n### Freevars\n\n```\nA fv\n```\nShows the free variables of the selected snippet.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Generate Method Stubs\n\n```\nA impl \u003crecv\u003e \u003ciface\u003e\nA impl 'f *File' io.ReadWriteCloser\n```\nGenerates method stubs with receiver `\u003crecv\u003e` for implementing the interface `\u003ciface\u003e` and inserts them at the location of the cursor.\nThis command uses `github.com/josharian/impl`.\n\n### Implements\n\n```\nA impls \u003cscope\u003e\n```\nShows the `implements` relation for the type or method under the cursor.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Peers\n\n```\nA peers \u003cscope\u003e\n```\nShows send/receive corresponding to the selected channel op.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Points To\n\n```\nA pto \u003cscope\u003e\n```\nShows variables the selected pointer may point to.\n`\u003cscope\u003e` is a comma-separated list of packages the analysis should be limited to, this parameter is optional.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Referrers\n\n```\nA refs\n```\nShows all refs to the entity denoted by identifier under the cursor.\nThis command uses `golang.org/x/tools/cmd/guru`.\n\n### Remove Struct Tags\n\n```\nA rmtags \u003ctags\u003e [options]\n```\nRemoves struct tags and tag options from the selected struct fields.\n`\u003ctags\u003e` is a comma-separated list of tags to remove, e.g. `json,xml`.\n`[options]` is an optional list of tag options to remove, e.g. `'json=omitempty,xml=omitempty'`\nThis command uses `github.com/fatih/gomodifytags`.\nSee it in action [here](https://twitter.com/davidrjenni/status/893130797376516096).\n\n### Renaming\n\n```\nA rn \u003cname\u003e\n```\nRenames the entity under the cursor with `\u003cname\u003e`.\nThis commands uses `golang.org/x/tools/cmd/gorename`.\n\n### Share\n\n```\nA share\n```\nUploads the selected snippet to play.golang.org and prints the URL.\n\n### What\n\n```\nA what\n```\nShows basic information about the selected syntax node.\nThis command uses `golang.org/x/tools/cmd/guru`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidrjenni%2FA","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidrjenni%2FA","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidrjenni%2FA/lists"}