
Go
kabcko
这个作者很懒,什么都没留下…
展开
-
Go 返回错误 error
import ( "errors")func TestOut(t *testing.T){ println( testError().Error())}func testError() error { return errors.New("Error Message!")}原创 2019-03-15 20:21:25 · 1748 阅读 · 0 评论 -
Golang IDE windows 编译Linux包
Edit configuration =>Run kind: DirectoryDirectory : 项目目录Output directory : 指定输出目录Run after build : 不勾选Working directory: 项目目录Environment : GOARCH=amd64;GOOS=linuxGo tool arguments : -iMud...原创 2019-03-20 17:34:03 · 1965 阅读 · 0 评论