Skip to Content

Go 1.11 is released. I'm excited about WASM support. But my favorite commands so far are:

# Init the Go modules:
$ go mod init

# Replace pkg management tool of your choice (golang/dep in my case):
$ GO111MODULE=on go mod vendor && GO111MODULE=on go mod tidy

# Update all dependencies to latest patch version:
$ GO111MODULE=on go get -u=patch

# List available updates:
$ GO111MODULE=on go list -m -u all

# Update a specific dependency to new version:
$ GO111MODULE=on go get github.com/pkg/[email protected]

@vojtechvitek

Join in on the conversation with Vojtech Vitek when you subscribe to Golang Toronto.