Go cannot find package “go-sql-driver/mysql” in any of

Time:2021-6-14

The solution of cannot find package “GitHub. COM / go SQL driver / MySQL” in any of

The main problem is lack of informationgo.modDocuments.
To solve the problem, you need to initialize ago.modDocuments; Use the following command:

go mod init Gone

This work adoptsCC agreementReprint must indicate the author and the link of this article