leson / go_poc

golang proof of concept

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quickstart

tar -zxvf go1.17.6.linux-amd64.tar.gz  -C ~/tools/
echo "export PATH=\$PATH:\$HOME/tools/go/bin" >> ~/.bashrc
go version
go -h

file main.go content as below shown:

package main
import "fmt"

func main()  {
	fmt.Println("hello go world!!!")
}
go mod init github.com/leson/go_poc

go mod tidy

go run cmd/main.go

Go code is grouped into packages, and packages are grouped into modules

Reference

About

golang proof of concept


Languages

Language:Go 100.0%