【语言学习】Go语言go build/install 区别

go build just compile the executable file and move it to the destination. go install do a little more. It moves the executable file to $GOPATH/bin if $GOBIN is set and cache all non-main packages which imported to $GOPATH/pkg. The cache will be used in the next compile if it not changed yet.
posted @ 2022-07-14 19:35  stay_heart  阅读(32)  评论(0)    收藏  举报