LoginSignup
0
0

More than 5 years have passed since last update.

go言語のライブラリ管理

Posted at

javascriptのnpm、ruby on railsのgemのようにgo言語でライブラリ管理をする方法。

dep

depのインストール

go get -u github.com/golang/dep/cmd/dep

初回はライブラリ管理対象のプロジェクト配下でinitコマンドを実行する。

cd src\target_project
..\..\bin\dep.exe init

dep.exe ensureコマンドを実行すると、goプログラムの中で使用しているライブラリをダウンロードする。
ライブラリはvendorディレクトリの配下にダウンロードされる。
dep.exe ensureコマンドを実行する度に毎回vendorディレクトリをクリアしてライブラリを再取得する。

..\..\bin\dep.exe ensure
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