mirror of
https://github.com/golang/go
synced 2024-11-19 04:34:39 -07:00
ff30247f34
This adds support for calling import from the gopls command line, e.g. $ gopls imports -w ~/tmp/foo/main.go Optional arguments are: -w, which writes the changes back to the original file; and -d, which prints a unified diff to stdout With no arguments, the changed file is printed to stdout. Updates golang/go#32875 Change-Id: I12f980d977fe12c16e51b024c9dd28c33ba6c002 GitHub-Last-Rev: c3fdd90e25204e7a12a94e9dfde389b7674e7e6d GitHub-Pull-Request: golang/tools#176 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202624 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
test | ||
check.go | ||
cmd_test.go | ||
cmd.go | ||
definition.go | ||
export_test.go | ||
format.go | ||
imports.go | ||
info.go | ||
query.go | ||
references.go | ||
rename.go | ||
serve.go |