LoginSignup
0
0

More than 1 year has passed since last update.

【Go】go getでうまくモジュールのバイナリファイルが落ちてこないときの解決手順

Last updated at Posted at 2021-06-17

go getでうまくモジュールのバイナリファイルが落ちてこないとき

解決した際の手順メモ

  1. 適当な作業ディレクトリ切る
sola$ mkdir hogehoge

2. go mod init example.com/hoge コマンド実行

sola$ mkdir hogehoge
sola$ cd hogehoge/
hogehoge sola$ go mod init example.com/hoge
go: creating new go.mod: module example.com/hoge

3. ほしいパッケージを指定してgo get実行

hogehoge sola$ go get github.com/golang/mock/mockgen@v1.4.3

4.落ちてきたか確認する

0
0
0

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