14
2

More than 1 year has passed since last update.

go mod tidyの役割

Posted at

公式サイトでgoの学習をしていてわからなかったことがあったのでメモ書きとしてまとめようとおもいます。

go mod tidy

結論からいうと、モジュール管理していて使わなくなったり必要なくなったパッケージを削除するためのコマンドです。

実際にgo modコマンドを打って確かめてみましょう

image.png

「add missing and remove unused modules」と書かれています。
不足していたり、使われていないモジュールに良しなに対応してくれるコマンドみたいですね。
ちなみに、tidyは「几帳面」という意味なのでそれも覚えとくと役割も理解できると思います。

短いですが、以上です。何か間違いがございましたら、ご教示いただけますと幸いです。

【参考文献】
https://qiita.com/k-kurikuri/items/609141727320eb1a6d2b

14
2
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
14
2