I initialized go.mod in the Gopath/src directory and wrote a package myself, but always compiled an error, but there was no problem using the package on github
:
Code:
go.mod:
package config
import (
"fmt"
)
func Config() {
fmt.Println("mmmmmmmmmmm")
}
compilation keeps telling me that I can"t find the config package, but I can"t do it without moudle