Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the internal compile commands which fail in a "go get" installation?

Tags:

go

People also ask

What command is run to compile your go application?

From the command line in the hello directory, run the go build command to compile the code into an executable.

Where does go run compile?

The go run command compiles and runs a main package comprised of the .go files specified on the command line. The command is compiled to a temporary folder. The go build and go install examine the files in the directory to determine which .go files are included in the main package.

Where are go packages installed by default?

By default, Go will be installed in /usr/local/go .

Which go command is used to create and see go documentation?

Fmt runs the command 'gofmt -l -w' on the packages named by the import paths. It prints the names of the files that are modified. For more about gofmt, see 'go doc cmd/gofmt'. For more about specifying packages, see 'go help packages'.


Run go build -x on problem package:

go build -x github.com/presbrey/magicmime