go/internal/lsp/cmd/usage/imports.hlp

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