mirror of
https://github.com/golang/go
synced 2024-11-18 14:14:46 -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> |
||
---|---|---|
.. | ||
apidiff | ||
fastwalk | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
module | ||
semver | ||
span | ||
telemetry | ||
testenv | ||
tool | ||
txtar | ||
xcontext |