H
H
Hrolnom2021-05-31 23:43:11
go
Hrolnom, 2021-05-31 23:43:11

Why does go get throw an error when downloading from git?

go get github.com/go-sql-driver/mysql: invalid github.com import path "github.com/go-sql-driver"
This is the error it gives me. Although I have downloaded git and I even wrote go mod init, it's all to no avail. Pls help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Romses Panagiotis, 2021-05-31
@Hrolnom

go get -v github.com/go-sql-driver/mysql
did everything download fine?
Now
https://github.com/go-sql-driver/mysql#usage
Then
go mod tidy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question