我有一个外部项目$GOPATH,我想使用go mod. 但是,当我从项目中复制代码$GOPATH并运行时
$ GO111MODULE=on go mod init github.com/jgoc/modtest
$ GO111MODULE=on go run main.go
我收到一个错误。
go version go1.12.5 windows/amd64
package main
import (
"github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/vector"
)
build command-line-arguments: cannot load github.com/hajimehoshi/ebiten/vector: cannot find module providing package github.com/hajimehoshi/ebiten/vector
示例: https: //github.com/jgoc/modtest
鸿蒙传说
相关分类