多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## Key命令 运行命令: ``` go run main.go key ``` 输出: ``` App Key: nooNSQIBSidfqRztvZIdOzwloOFWQAYS \--\- please go to .env file to change the APP\_KEY option ``` ## Play命令 运行命令: ``` go run main.go play ``` 输出: ``` hi from redis ``` ## 推荐学习资料: * cobra 官方指南[github.com/spf13/cobra/blob/master...](https://github.com/spf13/cobra/blob/master/user_guide.md) * pflag 项目也需要了解一下[github.com/spf13/pflag](https://github.com/spf13/pflag) * 另外一个知名项目 cli[github.com/urfave/cli](https://github.com/urfave/cli) * 代码高亮的两个库了解一下 * [github.com/mgutz/ansi](https://github.com/mgutz/ansi) * [github.com/fatih/color](https://github.com/fatih/color)