标签:panic ack top status stat create test pac package
代码演示:
package main import "os" func main() { // panic("a problem") _, err := os.Create("/tmp/file") if err != nil { panic(err) } }
代码运行结果:
panic: a problem goroutine 1 [running]: main.main() /Users/chenhaolin/Desktop/暂存区/test.go:6 +0x39 exit status 2
代码解读:
标签:panic ack top status stat create test pac package
原文地址:https://www.cnblogs.com/Joestar/p/8908760.html