Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

P3页 少了name变量定义 #18

Open
ScGPS opened this issue Aug 30, 2023 · 0 comments
Open

P3页 少了name变量定义 #18

ScGPS opened this issue Aug 30, 2023 · 0 comments

Comments

@ScGPS
Copy link

ScGPS commented Aug 30, 2023

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", flag.ExitOnError)
                goCmd.StringVar(&name, "name", "Go语言", "帮助信息")
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant