[Learn GO] Hello world
I touched on docker a few weeks ago. I knew it code by go language. So i tried hello world with go as a taste,maybe it's not the right things to do ,but i want to try.
make a file hello.go
package main
import (
"fmt" //导入fmt包,调用其中的Println()函数
)
func main() {
fmt.Println("Hello,world!")
}
run the code
open the terminal and Enter this command
go run hello.go
wo~ it's a good test.
basic knowledge
- constant
- variable
- floating-point
- string
- character
- Arrays and slices
- package
i will record it in next blog