0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Goのpackage github.com/mattn/go-sqlite3 is not a main packagetとかいうエラー

Posted at

go初心者です。
go1.18 darwin/arm64を使っています。

このエラーの解決方法(個人的に)を残したいと思います。

①brew なりでsqlite3をインストールします。

②自分のPJのディレクトリでgo mod initします。

go mod init github.com/mattn/go-sqlite3 

③go.modのあるディレクトリでgo mod tidyをします。

go mod tidy

これで使えるようになるはずです。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?