... Try the following: mkdir myprog cd myprog go mod init myprog ... now use your editor to create main.go which references some third-party package, here is a minimal example: -------------- package main import _ "github.com/go-sql-driver/mysql"
func main() { } -------------- ... then: go mod tidy go build . -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/66e21ffd-5878-46a1-9127-0393b90c35f3n%40googlegroups.com.