Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 349 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 349 Bytes

go-sandbox

モジュールを作る

mkdir hello
cd hello

go mod init example/hello
vi hello.go
go run .

外部パッケージを取り込む

Golang のソースコードでimportを宣言する。

import "<prefix>/<package>""

go mod ツールでパッケージを取り込む。

go mod tidy