A - Go tools for Acme.
% go get github.com/davidrjenni/A
% go get -u golang.org/x/tools/cmd/guru
% go get -u github.com/zmb3/gogetdoc
% go get -u github.com/godoctor/godoctor
% go get -u github.com/josharian/impl
% go get -u golang.org/x/tools/cmd/gorename
% go get -u github.com/fatih/gomodifytags
% go get -u github.com/davidrjenni/reftools/cmd/fillstruct
% go get -u github.com/davidrjenni/reftools/cmd/fillswitch
A addtags <tags> [options]
Adds struct tags and tag options to the selected struct fields.
<tags>
is a comma-separated list of tags to add, e.g. json,xml
.
[options]
is an optional list of tag options to add, e.g. 'json=omitempty,xml=omitempty'
This command uses github.com/fatih/gomodifytags
.
See it in action here.
A cle <scope>
Shows possible targets of the function call under the cursor.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A clr <scope>
Shows possible callers of the function under the cursor.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A cs <scope>
Shows the path from the callgraph root to the function under the cursor.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A def
Shows the declaration for the identifier under the cursor.
This command uses golang.org/x/tools/cmd/guru
.
A desc
Describes the declaration for the syntax under the cursor.
This command uses golang.org/x/tools/cmd/guru
.
A doc
Shows the documentation for the entity under the cursor.
This command uses github.com/zmb3/gogetdoc
.
A err <scope>
Shows possible values of the error variable under the cursor.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A ex <name>
Extracts the selected statements to a new function/method with name <name>
.
This command uses github.com/godoctor/godoctor
.
A fstruct
Fills the selected struct literal with default values.
This command uses github.com/davidrjenni/reftools/cmd/fillstruct
.
A fswitch
Fills the selected (type) switch statement with case statements.
This command uses github.com/davidrjenni/reftools/cmd/fillswitch
.
A fv
Shows the free variables of the selected snippet.
This command uses golang.org/x/tools/cmd/guru
.
A impl <recv> <iface>
A impl 'f *File' io.ReadWriteCloser
Generates method stubs with receiver <recv>
for implementing the interface <iface>
and inserts them at the location of the cursor.
This command uses github.com/josharian/impl
.
A impls <scope>
Shows the implements
relation for the type or method under the cursor.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A peers <scope>
Shows send/receive corresponding to the selected channel op.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A pto <scope>
Shows variables the selected pointer may point to.
<scope>
is a comma-separated list of packages the analysis should be limited to, this parameter is optional.
This command uses golang.org/x/tools/cmd/guru
.
A refs
Shows all refs to the entity denoted by identifier under the cursor.
This command uses golang.org/x/tools/cmd/guru
.
A rmtags <tags> [options]
Removes struct tags and tag options from the selected struct fields.
<tags>
is a comma-separated list of tags to remove, e.g. json,xml
.
[options]
is an optional list of tag options to remove, e.g. 'json=omitempty,xml=omitempty'
This command uses github.com/fatih/gomodifytags
.
See it in action here.
A rn <name>
Renames the entity under the cursor with <name>
.
This commands uses golang.org/x/tools/cmd/gorename
.
A share
Uploads the selected snippet to play.golang.org and prints the URL.
A what
Shows basic information about the selected syntax node.
This command uses golang.org/x/tools/cmd/guru
.