Questions tagged «vgo»

2
访问go模块中的本地包(go 1.11)
我正在试用Go的新模块系统,无法访问本地软件包。以下项目位于我的gopath外的桌面上的文件夹中。 我的项目结构如下: / - /platform - platform.go - main.go - go.mod // platform.go package platform import "fmt" func Print() { fmt.Println("Hi") } // main.go package main import "platform" func main() { platform.Print() } go build main.go 告诉我 cannot find module for path platform
80 go  vgo 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.