Top "Go-modules" questions

A module is a collection of related Go packages.

Completely remove a package installed with "go get"?

I'm using Go 1.13.1, latest as of today. I'm trying to completely remove a package that I installed with go get …

go package uninstallation go-modules
Go Modules - naming convention of directories and packages

I understand Go Modules are yet an experimental opt-in feature, and perhaps because of that, I cannot find clear guidance …

go module go-modules
How to fix Go build error "can't load package" with Go modules?

I'm setting up a new project using Go modules with this tutorial, and then trying to build it. The module …

go go-modules go-build
Could not import local modules in Golang

I am trying to import local modules, but I am unable to import it using go mod. I initially built …

go import module go-modules
go modules - replace does not work - replacement module without version must be directory path (rooted or starting with

I just want to use a local package using go modules. I have these files in a folder goweb: and …

go go-modules
go mod vendor without update to latest

I’m trying to figure out if it’s possible to run go mod vendor without the go tool updating …

go go-modules
Using "go get" to download binaries without adding them to go.mod

I'm using Go modules in my project and in my build system (e.g. Travis CI) I'm downloading a command-line …

go go-modules
How to upgrade the go version in a go mod

What is the proper way to upgrade the go version in a go mod, specifically 1.13 to 1.14? Do you simply edit …

go go-modules
Unknown subcommand "mod" error while running go mod init

I have installed the go language in my ubuntu using sudo apt install golang-go. It was successfully installed. When i …

go go-modules
How do I refactor module name in Go?

I have a Go module named mymodule, and I'd like to rename it into github.com/hylowaker/awesome-module Using command …

go refactoring go-modules