use go module

Enable with environment variables

go env -w GO111MODULE=on
go env | grep MOD

Initialization process

go mod init test

go.mod has been created

go.mod


module test

go 1.13

Start-up

Packages that are not automatically go get are imported

go run main.go

Recommended Posts

use go module
[Go] How to use "... (3 periods)"
How to use the optparse module
Use optinal type-like in Go language
How to use Python's logging module
Use blender as a python module
Use curl / jq library with Go
How to use the ConfigParser module
Go Language-Basic ❶
Go language-fmt.Scan
Go language-address
Go Language-Functions
Go language-pointer
Go Language-Basic ❷
Use DeepLabCut
GO Chokisomemo 1
Go language-iteration
Use: Django-MySQL
Use Python external module on Sakura Internet
Use Pygments.rb
Use Numpy
use pandas-ply
[Go] Use Open ID Connect with go-oidc
Use GitPython
Use Miniconda
Use the e-paper module as a to-do list
Use the nghttp2 Python module from Homebrew from pyenv's Python