-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Go 580 3224 4002 14259
XML 11 0 0 2046
JavaScript 40 75 150 320
SQL 16 33 16 274
Markdown 5 46 0 148
JSON 3 1 0 71
YAML 4 3 0 60
INI 2 2 0 31
make 2 12 11 30
Bourne Shell 1 1 1 14
Dockerfile 1 8 6 14
C++ 1 0 0 13
HTML 1 0 0 10
CSV 2 0 0 9
-------------------------------------------------------------------------------
SUM: 669 3405 4186 17299
-------------------------------------------------------------------------------
检查版本: go version
- Windows
我的电脑
-> 属性
-> 高级系统设置
-> 环境变量
-> 系统变量
-> path
-> 复制 bin 路径 ...go\bin
- Mac
vim ~/.bash_profile
export PATH=$PATH:/usr/local/go/bin
source ~/.bash_profile
package main
import "fmt"
func main() {
fmt.Println("hello world!")
}
go mod init example.com/hello