complete-c go -n'__fish_use_subcommand'-a build -d'compile packages and dependencies'
# clean
complete-c go -n'__fish_use_subcommand'-a clean -d'remove object files'
complete-c go -n'__fish_seen_subcommand_from clean'-s i -d"remove the corresponding installed archive or binary (what 'go install' would create)"
complete-c go -n'__fish_seen_subcommand_from clean'-s n -d"print the remove commands it would execute, but not run them"
complete-c go -n'__fish_seen_subcommand_from clean'-s r -d"clean to be applied recursively to all the dependencies of the packages named by the import paths"
complete-c go -n'__fish_seen_subcommand_from clean'-s x -d"clean to print remove commands as it executes them"
# doc
complete-c go -n'__fish_use_subcommand'-a doc -d'run godoc on package sources'
complete-c go -n'__fish_seen_subcommand_from doc'-s n -d"prints commands that would be executed"
complete-c go -n'__fish_seen_subcommand_from doc'-s x -d"prints commands as they are executed"
# env
complete-c go -n'__fish_use_subcommand'-a env -d'print Go environment information'
# fix
complete-c go -n'__fish_use_subcommand'-a fix -d'run go tool fix on packages'
# fmt
complete-c go -n'__fish_use_subcommand'-a fmt -d'run gofmt on package sources'
complete-c go -n'__fish_seen_subcommand_from fmt'-s n -d"prints commands that would be executed"
complete-c go -n'__fish_seen_subcommand_from fmt'-s x -d"prints commands as they are executed"
# get
complete-c go -n'__fish_use_subcommand'-a get -d'download and install packages and dependencies'
complete-c go -n'__fish_seen_subcommand_from get'-o fix -d"run fix tool on packages before resolving dependencies or building"
complete-c go -n'__fish_seen_subcommand_from get'-s u -d"update remote packages"
# help
complete-c go -n'__fish_use_subcommand'-ahelp-d'get help on topic'
complete-c go -n'__fish_seen_subcommand_from help'-xa'build clean doc env fix fmt get install list run test tool version vet gopath packages remote testflag testfunc'-d"target tool"
# install
complete-c go -n'__fish_use_subcommand'-a install -d'compile and install packages and dependencies'
# list
complete-c go -n'__fish_use_subcommand'-a list -d'list packages'
complete-c go -n'__fish_seen_subcommand_from list'-s e -d"tolerate erroneous packages"
complete-c go -n'__fish_seen_subcommand_from list'-s f -r-d"pass in template for formatting"
complete-c go -n'__fish_seen_subcommand_from list'-o json -d"print in JSON format"
complete-c go -n'__fish_seen_subcommand_from list'-o tags -r-d'list of build tags'
# run
complete-c go -n'__fish_use_subcommand'-a run -d'compile and run Go program'
# test
complete-c go -n'__fish_use_subcommand'-a test -d'test packages'
complete-c go -n'__fish_seen_subcommand_from test'-s c -r-d"compile the test binary to pkg.test but do not run it"