Golang开发环境设置

2020-04-19  本文已影响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")
}

上一篇 下一篇

猜你喜欢

热点阅读