go环境搭建

goland配置

GOROOT编译器位置

 

 GOPATH项目位置

 

  GOPATH路路径最好只设置⼀一个,所有的项⽬目都放到GOPATH的src⽬目录下

目录结构划分

 

第一个helloworld

package main

import (
	"fmt"
)

func main() {
	fmt.Println("hello world")
}

  

 

 
posted @ 2020-03-19 15:36  从入门到出师  阅读(108)  评论(0编辑  收藏  举报