GoLang基础语法

变量定义

从hello world入手

1
2
3
4
5
6
7
package main

import "fmt"

func main() {
fmt.Println("Hello World")
}

控制台输出:

1
Hello World
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×