Skip to content

Go Modulesへの対応#1

Open
guni1192 wants to merge 1 commit into
masterfrom
gomodules
Open

Go Modulesへの対応#1
guni1192 wants to merge 1 commit into
masterfrom
gomodules

Conversation

@guni1192

@guni1192 guni1192 commented Oct 27, 2020

Copy link
Copy Markdown
Member

Why

  • ビルドするのにdepなどのサードパーティ製ソフトウェアをインストールするのは面倒
  • GOPATH以下にプロジェクトを配置しなければならない

How

Go ModulesというGo 1.11から導入されたGolang標準のパッケージマネージャを使う.
go mod コマンドで使うことができ,go.mod, go.sum が存在すれば,go build 時に依存関係の開発を行ってくれる.
これにより,depなどのサードパーティ製ソフトウェアは必要なく,GOPATH以下でなくともコンパイルできるようになる.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant