run 命令

帮助信息:gopm run -hgopm help run

  1. NAME:
  2. run - link dependencies and go run
  3. USAGE:
  4. command run [command options] [arguments...]
  5. DESCRIPTION:
  6. Command run links dependencies according to gopmfile,
  7. and execute 'go run'
  8. gopm run <go run commands>
  9. gopm run -l will recursively find .gopmfile with value localPath
  10. and run the cmd in the .gopmfile, Windows hasn't supported yet,
  11. you need to run the command right at the local_gopath dir.
  12. OPTIONS:
  13. --tags apply build tags
  14. --local, -l run command with local gopath context
  15. --verbose, -v show process details

gopm run <go run commands>

  • 功能:根据 gopmfile 链接依赖并执行 go run。
  • 示例:gopm run main.go

选项

  • —tags:应用构建 tags。
  • —verbose, -v:显示详细信息。