摘要:
Cobra提供的功能 简易的子命令行模式,如 app server, app fetch等等 完全兼容posix命令行模式 嵌套子命令subcommand 支持全局,局部,串联flags 使用Cobra很容易的生成应用程序和命令,使用cobra create appname 和cobra add c 阅读全文
posted @ 2022-05-23 23:50
jiftle
阅读(126)
评论(0)
推荐(0)
摘要:
golang 编写命令行程序,需要得到外部输入参数,可使用flag包. 使用如下 file := flag.String("file", "../resource/001.mnt", "asm file, eg. 001.mnt") flag.Parse() fmt.Println(*file) 阅读全文
posted @ 2022-05-23 23:41
jiftle
阅读(90)
评论(0)
推荐(0)
摘要:
CodeMirror https://codemirror.net/6/ 阅读全文
posted @ 2022-05-23 18:14
jiftle
阅读(64)
评论(0)
推荐(0)