GO語言學習筆記(四) - 測試 go test 測試程式規則 測試程式檔案必須以_test.go結尾 需要引入testing包 測試方法(函數)名必須以Test開頭 測試指令 執行全部測試檔案 go test 執行全部測試檔案,顯示執行資訊 go test -v