github.com/jhump/golang-x-tools@v0.0.0-20220218190644-4958d6d39439/internal/lsp/cmd/usage/imports.hlp (about)

     1  updates import statements
     2  
     3  Usage:
     4    gopls [flags] imports [imports-flags] <filename>
     5  
     6  Example: update imports statements in a file:
     7  
     8  	$ gopls imports -w internal/lsp/cmd/check.go
     9  
    10  imports-flags:
    11    -d,-diff
    12      	display diffs instead of rewriting files
    13    -w,-write
    14      	write result to (source) file instead of stdout