go语言-语法和数据类型
# 语法 # 行分隔符 先看一下 c++ 的 hello world: #include <iostream>using namespace std;int main(){ cout << "hello world" << endl;}然后再看一下 go 的: package mainimport "fmt"func main() { fmt.Println("hello world")}可以看出以下几点差异: C++ 使用 main 函数定位项目入口
more...