init () 會在程式啟動時自動以宣告的順序執行,但不能被call 或參考。 假設有以下兩個go 檔案:. foo.go. package main import "fmt" func init() {
確定! 回上一頁