社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
1、安装git
2、直接导入第三方包:
go get github.com/koding/kite
3、然后会有提示:
package golang.org/x/crypto/ssh/terminal: unrecognized import path "golang.org/x/crypto/ssh/terminal"
4、这时候直接从git上clone:
git clone https://github.com/golang/crypto.git
git默认路径在c盘user目录中,然后放到GOPATH的对应路径:
F:GoWorkSpacesrcgolang.orgxcrypto
5、然后项目中会报错:
import "github.com/koding/kite"
func main() {
k := kite.New("first", "1.0.0")
k.Config.Port = 6000
k.Run()
}
..srcgolang.orgxcryptosshterminalutil_windows.go:22:2: cannot find package "golang.org/x/sys/windows" in any of:
F:Gosrcgolang.orgxsyswindows (from $GOROOT)
F:GoWorkSpacesrcgolang.orgxsyswindows (from $GOPATH)
6、clone另外一个项目,并移到GOPATH下:
git clone https://github.com/golang/sys.git
7、然后就可以启动成功了:
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!