goroutine 1 [running]:main.main() C:/Users/安/GolandProjects/awesomeProject/zifuchuan/04/main.go:10 +0xbaexit status 2
数组越界,os.Args 读启动参数,你没有传吧
go run main.go xxxxxxx