aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/cmd/usage/imports.hlp
blob: 295f4daa2d432c0a36cbbc8219e30aed731e46c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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,-diff
    	display diffs instead of rewriting files
  -w,-write
    	write result to (source) file instead of stdout