mirror of https://github.com/golang/go.git
13 lines
294 B
Plaintext
13 lines
294 B
Plaintext
updates import statements
|
|
|
|
Usage:
|
|
gopls [flags] imports [imports-flags] <filename>
|
|
|
|
Example: update imports statements in a file:
|
|
|
|
$ gopls imports -w internal/lsp/cmd/check.go
|
|
|
|
imports-flags:
|
|
-d display diffs instead of rewriting files
|
|
-w write result to (source) file instead of stdout
|