我用go写了个程序,后面打算用shell调用,但是go的main不允许返回int,那shell怎么知道执行是否成功了呢?
收起
成功退出码,0 os.Exit(0)
失败退出码,非0 os.Exit(1)
报告相同问题?