0
0

More than 1 year has passed since last update.

Goのpackage管理

Posted at

はじめに

goのpackage管理関係は変更が多くて苦労した
理解できた気がするのでまとめる

基本は下記でなんとかなりそう

// global install
go install <package>@<version>

// local install
1 go mod init [module名] // 基本はリポジトリ名に合わせる
2 import文記載
3 go mod tidy

3のgo mod tidyは使ってないpackageの掃除もする
新規packageのinstallのみしたい場合は go getを引数なしで実行する

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