美文网首页
Golang开发环境设置

Golang开发环境设置

作者: 神经码农 | 来源:发表于2020-04-19 17:25 被阅读0次

1. 安装golang

sudo apt install golang-go

2. 安装golang的一些常用包

go get testing

go get fmt

3. 安装开发IDE(笔者在sourcefroge下载的LiteIDE)

// 写个hello world调试一下

package hellowrold

import "fmt"
import "testing"

func TestHelloWord(t *testing.T) {
    fmt.Println("hello world")
}

相关文章

网友评论

      本文标题:Golang开发环境设置

      本文链接:https://www.haomeiwen.com/subject/ymvvbhtx.html