If youâre on Linux or FreeBSD, itâs possible you installed the 64-bit Go development tools on a 32-bit system or the development tools for the wrong chip architecture. If it isnât the go command at /usr/local/go/bin/go, you need to fix your executable path. On Mac OS and other Unix-like systems, use which go to see the go command being executed, if any. If you get an error instead of the version message, itâs likely that you donât have go in your executable path, or you have another program named go in your path. (Darwin is the name of the kernel for Mac OS and amd64 is the name for the 64-bit CPU architecture from both AMD and Intel.) This tells you that this is Go version 1.15.2 on Mac OS. If everything is set up correctly, you should see something like this printed: go version go1.15.2 darwin/amd64 You can validate that your environment is set up correctly by opening up a terminal or command prompt and typing: $ go version Install the Go development tools only on computers that build Go programs. Go programs compile to a single binary and do not require any additional software to be installed in order to run them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |