Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Authors = []*cli.Author{
{
Name: "果子",
Email: "zmguozi@gmail.com",
},
{
Name: "aimuz",
Email: "mr.imuz@gmail.com",
},
}
View Source
var CmdClear = &cli.Command{
Name: "clear",
Usage: "清理缓存",
Action: clearAction,
}
View Source
var CmdHelp = &cli.Command{ Name: "help", Aliases: []string{"h"}, Usage: "显示所有帮助信息或者显示单个指令的帮助信息(goc help setup)", ArgsUsage: "[command]", Action: func(c *cli.Context) error { args := c.Args() if args.Present() { return cli.ShowCommandHelp(c, args.First()) } cli.ShowAppHelp(c) return nil }, }
View Source
var CmdInit = &cli.Command{
Name: "init",
Usage: "初始化 Go 项目",
}
View Source
var CmdRelease = &cli.Command{
Name: "release",
Usage: "构建 Go 生产环境版本",
}
View Source
var CmdSearch = &cli.Command{
Name: "search",
Usage: "搜索 Go 类库",
}
View Source
var CmdSetup = &cli.Command{
Name: "setup",
Usage: "安装 Go 开发环境,切换 Go 版本",
Action: setupAction,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "proxy",
Usage: "设置代理地址",
},
&cli.StringFlag{
Name: "download_url",
Usage: "Go 安装包下载地址前缀",
},
},
}
View Source
var CmdTools = &cli.Command{
Name: "tools",
Usage: "安装 Go 辅助开发工具",
}
View Source
var CmdWatch = &cli.Command{
Name: "watch",
Usage: "监控 Go 源码变化并自动编译和运行",
Action: watchAction,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.