Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does "./..." in "go install ./..." mean in go language?

I am a beginner of go. I tried to compile a go project, but I can not find any doc or article explaning "/...".

cd ~/src/ephenation-server
go install -v ./...

Waiting for your help.

like image 536
chatfeed Avatar asked Oct 26 '12 09:10

chatfeed


People also ask

What does go install does?

Since Go 1.16, go install can install a command at a version specified on the command line while ignoring the go. mod file in the current directory (if one exists). go install should now be used to install commands in most cases.

Where do go install go?

The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect. Confirm that the command prints the installed version of Go.

How do I install packages in go?

To install a package using go get follow the following steps: Step 1: Make sure to check whether the Golang is installed on your system by checking the version of Go. Step 2: Set the GOPATH by using the following command. Step 3: Now, set the PATH variable with the help of the following command.


1 Answers

The go command interprets example/path/... as example/path/ and all subdirectories. You might want to read the section, Description of package lists, on how go finds your packages..

like image 147
simonmenke Avatar answered Sep 24 '22 10:09

simonmenke