第一篇Hello,world!
本人小白也是刚开始学习go有不对的地方也希望大家指出来。
golang语言认为是像python和C语言的综合
好了首先从hello.go开始好了。
首先可以看下python,C的程序
hello.py
def hello():
print("hello")
hello()
hello.cpp
#includeint main() { printf("Hello, world!"); return 0; }
hello.go
//声明包
package main
//导入fmt包,打印字符串需要用到
import ("fmt")
func main()
{
fmt.printIn("hello,world!")
}



