Dockerfile:```goFROM golang:latestWORKDIR www/src/gomod_studyCOPY . www/src/gomod_study配置国内代理RUN go env w GOPROXY=https://goproxy.io,direct下载 go.mod 文件中指明的所有依赖 RUN go mod d
关闭channel:```gopackage mainimport "fmt"//close();关闭channelfunc main() { c := make(chan int) go func() { for i := 0; i < 5; i++ { c < i } //关闭channel close
1、任意一个变量都是包含`pair<type:, value: ` 2、由两个指针一个type指针,一个value指针组成的3、type包含静态的类型 (例:int string float)和具体类型(interface所指向的具体类型)例:```govar a string//pari<type:string,value:"abc" a = "a
最新评论