回傳error type 1.使用fmt.Errorf package main import "fmt" func checkUser...
slice 做function的參數 package main import "fmt" func modify(foo []strin...
跟c語言的switch很像,不用寫break package main import "fmt" func checkValue(s i...
一個package下,可以多個init package main import "fmt" func init() { fmt.Pri...
減少review code time 降低別人動你code 的錯誤機會 code quality car.go package car import &q...
use testify tool go get -v github.com/stretchr/testify/assert package car im...
main.go package main import ( "fmt" "log" "strconv&...
第三方 go-critic文件連結 go gocritic check-project {{專案路徑}} 原生go linters go vet errch...
今日main.go package main import "fmt" func do(i int) { fmt.Println(i)...
docker stop {這陣子的練習go的container ID} 複製一份這個container環境當一個image docker commit {這...