From aac56495ba3cea700ce0fcc9a5c06f334b5cb84e Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 30 Jul 2024 12:17:57 +0900 Subject: [PATCH] Update 'go fmt' completion --- src/_golang | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_golang b/src/_golang index 8fea9f1..32d64eb 100644 --- a/src/_golang +++ b/src/_golang @@ -560,11 +560,12 @@ case $state in '*:importpaths:__go_packages' ;; - fmt) + (fmt) _arguments \ '-C[change to directory before running the command]: :_files -/' \ '-n[prints commands that would be executed]' \ '-x[prints commands as they are executed]' \ + '-mod=[sets which download mode to use]:mode:(readonly vendor)' \ '*:importpaths:__go_packages' ;;