tour
tour copied to clipboard
《Go 语言编程之旅:一起用 Go 做项目》第一章:命令行程序(Command)
Results
12
tour issues
Sort by
recently updated
recently updated
newest added
文章方法下面应该是 type Article struct{} func NewArticle() Article { return Ariticle } 包括下面的应该都改成Article。 ctrl c v翻车了吧!
P3 应该把 ``` switch args[0] { case "go": goCmd := flag.NewFlagSet("go", flag.ExitOnError) goCmd.StringVar(&name, "name", "Go语言", "帮助信息") ``` 改成 ``` var name string switch args[0] { case "go": goCmd := flag.NewFlagSet("go",...