Skip to content

niannings/go-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Golang 学习笔记

安装Golang

  1. 下载Go下载地址
  2. 初始化
mkdir goland & cd goland
touch test.go & code hello.go
  1. 编写第一个go程序 hello world
// hello.go
package main

import "fmt"

func main() {
	fmt.Printf("hello, world\n")
}
  1. 运行
go run hello.go
# hello world
  1. 构建应用程序
go build
# 接下来运行
./goland
# hello world

目录索引

参考资料

About

golang学习笔记

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages