package main import "mycore" func main(){ mycore.ShowName() }
module mytest require mycore v0.0.0 replace mycore v0.0.0 => ./mycore
package mycore import "fmt" func ShowName(){ fmt.Println("sunlong") }
module mycore go 1.12
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/p/11754540.html