一、註釋
Golang的註釋與C/C++類似,使用//和/* */來進行註釋。
// 單行註釋 /* 多行註釋 */
註釋的快捷鍵:Ctrl+/
二、輸出
// app.go
package main
import (
"fmt"
)
func main(){
fmt.Print("Hello World!!\n") // 手動換行
fmt.Println("Hello World!!") // 自動換行
fmt.Printf("我的名字是%s,年齡是%d,活力100%%","Leokale",30)
}