ฉันพยายามติดตั้งdoozerเช่นนี้:
$ goinstall github.com/ha/doozer
ฉันได้รับข้อผิดพลาดเหล่านี้
goinstall: os: go/build: package could not be found locally goinstall: fmt: go/build: package could not be found locally goinstall: io: go/build: package could not be found locally goinstall: reflect: go/build: package could not be found locally goinstall: math: go/build: package could not be found locally goinstall: rand: go/build: package could not be found locally goinstall: url: go/build: package could not be found locally goinstall: net: go/build: package could not be found locally goinstall: sync: go/build: package could not be found locally goinstall: runtime: go/build: package could not be found locally goinstall: strings: go/build: package could not be found locally goinstall: sort: go/build: package could not be found locally goinstall: strconv: go/build: package could not be found locally goinstall: bytes: go/build: package could not be found locally goinstall: log: go/build: package could not be found locally goinstall: encoding/binary: go/build: package could not be found locally
GOPATH
จะถูกตั้งค่าสำหรับคุณใน Go 1.8 (2017) ดูคำตอบของฉันด้านล่าง
goinstall
เป็น pre-Go1 ที่เก่าแก่จริงๆและไม่มีอยู่ตั้งแต่ 2555