我想导入以下git项目 github.com/tebeka/selenium
当我使用标准Go依赖关系管理时,它就像 go get github.com/tebeka/selenium
一样简单,然后
import ("github.com/tebeka/selenium"
"github.com/tebeka/selenium/chrome")
但是,当我尝试用vgo(模块)做同样的事情时,我收到以下错误:
unknown import path "github.com/tebeka/selenium/chrome": cannot find module providing package github.com/tebeka/selenium/chrome
Go mod生成以下go.mod文件
module mymodule
require (
github.com/BurntSushi/toml v0.3.1
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
github.com/tebeka/selenium v0.9.3
)