Complete package name in 'go doc'

This commit is contained in:
Shohei YOSHIDA 2024-07-30 11:56:50 +09:00
parent f475c1322f
commit 937cd0fcea
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 3 additions and 2 deletions

View File

@ -449,14 +449,15 @@ case $state in
'*:importpaths:__go_packages'
;;
doc)
(doc)
_arguments \
'-all[show all the documentation for the package]' \
'-c[respect case when matching symbols]' \
'-cmd[treat a command (package main) like a regular package]' \
'-short[one-line representation for each symbol]' \
'-src[show the full source code for the symbol]' \
'-u[show docs for unexported and exported symbols and methods]'
'-u[show docs for unexported and exported symbols and methods]' \
'*:importpaths:__go_packages'
;;
env)