golang.org/x/tools/gopls@v0.15.3/internal/cmd/usage/usage-v.hlp (about)

     1  
     2  gopls is a Go language server.
     3  
     4  It is typically used with an editor to provide language features. When no
     5  command is specified, gopls will default to the 'serve' command. The language
     6  features can also be accessed via the gopls command-line interface.
     7  
     8  Usage:
     9    gopls help [<subject>]
    10  
    11  Command:
    12  
    13  Main                
    14    serve             run a server for Go code using the Language Server Protocol
    15    version           print the gopls version information
    16    bug               report a bug in gopls
    17    help              print usage information for subcommands
    18    api-json          print JSON describing gopls API
    19    licenses          print licenses of included software
    20                      
    21  Features            
    22    call_hierarchy    display selected identifier's call hierarchy
    23    check             show diagnostic results for the specified file
    24    codelens          List or execute code lenses for a file
    25    definition        show declaration of selected identifier
    26    execute           Execute a gopls custom LSP command
    27    folding_ranges    display selected file's folding ranges
    28    format            format the code according to the go standard
    29    highlight         display selected identifier's highlights
    30    implementation    display selected identifier's implementation
    31    imports           updates import statements
    32    remote            interact with the gopls daemon
    33    inspect           interact with the gopls daemon (deprecated: use 'remote')
    34    links             list links in a file
    35    prepare_rename    test validity of a rename operation at location
    36    references        display selected identifier's references
    37    rename            rename selected identifier
    38    semtok            show semantic tokens for the specified file
    39    signature         display selected identifier's signature
    40    stats             print workspace statistics
    41    fix               apply suggested fixes
    42    symbols           display selected file's symbols
    43    workspace_symbol  search symbols in workspace
    44                      
    45  Internal Use Only   
    46    vulncheck         run vulncheck analysis (internal-use only)
    47  
    48  flags:
    49    -debug=string
    50      	serve debug information on the supplied address
    51    -listen=string
    52      	address on which to listen for remote connections. If prefixed by 'unix;', the subsequent address is assumed to be a unix domain socket. Otherwise, TCP is used.
    53    -listen.timeout=duration
    54      	when used with -listen, shut down the server when there are no connected clients for this duration
    55    -logfile=string
    56      	filename to log to. if value is "auto", then logging to a default output file is enabled
    57    -mode=string
    58      	no effect
    59    -ocagent=string
    60      	the address of the ocagent (e.g. http://localhost:55678), or off (default "off")
    61    -port=int
    62      	port on which to run gopls for debugging purposes
    63    -profile.alloc=string
    64      	write alloc profile to this file
    65    -profile.cpu=string
    66      	write CPU profile to this file
    67    -profile.mem=string
    68      	write memory profile to this file
    69    -profile.trace=string
    70      	write trace log to this file
    71    -remote=string
    72      	forward all commands to a remote lsp specified by this flag. With no special prefix, this is assumed to be a TCP address. If prefixed by 'unix;', the subsequent address is assumed to be a unix domain socket. If 'auto', or prefixed by 'auto;', the remote address is automatically resolved based on the executing environment.
    73    -remote.debug=string
    74      	when used with -remote=auto, the -debug value used to start the daemon
    75    -remote.listen.timeout=duration
    76      	when used with -remote=auto, the -listen.timeout value used to start the daemon (default 1m0s)
    77    -remote.logfile=string
    78      	when used with -remote=auto, the -logfile value used to start the daemon
    79    -rpc.trace
    80      	print the full rpc trace in lsp inspector format
    81    -v,-verbose
    82      	verbose output
    83    -vv,-veryverbose
    84      	very verbose output