This article has not yet passed wikiHow's quality review process. Learn more
Edit Article



The Go Programming Language

Ok,
Close
This article has not yet passed wikiHow's quality review process. Learn more

Steps

  1. 1
    Documentation:The Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.
  2. 2
    Download the Go distribution: Official binary distributions are available for the FreeBSD (release 8 and above), Linux, Mac OS X (Snow Leopard and above), and Windows operating systems and the 32-bit (386) and 64-bit (amd64) x86 processor architectures. If a binary distribution is not available for your combination of operating system and architecture, try installing from source or installing gccgo instead of gc. System requirements: The gc compiler supports the following operating systems and architectures. Please ensure your system meets these requirements before proceeding. If your OS or architecture is not on the list, it's possible that gccgo might support your setup; see Setting up and using gccgo for details. Operating system Architectures Notes FreeBSD 8 or later amd64, 386, arm Debian GNU/kFreeBSD not supported; FreeBSD/ARM needs FreeBSD 10 or later Linux 2.6.23 or later with glibc amd64, 386, arm CentOS/RHEL 5.x not supported; no binary distribution for ARM yet Mac OS X 10.6 or later amd64, 386 use the gcc† that comes with Xcode‡ Windows XP or later amd64, 386 use MinGW gcc†. No need for cygwin or msys. †gcc is required only if you plan to use cgo. ‡You only need to install the command line tools for Xcode. If you have already installed Xcode 4.3+, you can install it from the Components tab of the Downloads preferences panel. Install the Go tools:Windows The Go project provides two installation options for Windows users (besides installing from source): a zip archive that requires you to set some environment variables and an MSI installer that configures your installation automatically. Mac OS X package installer Download the package file, open it, and follow the prompts to install the Go tools. 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.
  3. 3
    Test your installation: Check that Go is installed correctly by building a simple program, as follows. Create a file named hello.go and put the following program in it: package main import "fmt" func main() { fmt.Printf("hello, world\n") } Then run it with the go tool: $ go run hello.go hello, world If you see the "hello, world" message then your Go installation is working.
  4. 4
    Set up your work environment: You're almost done. You just need to set up your environment.

We could really use your help!

Can you tell us about
cats?
Yes
No
cats
how to get rid of dry skin on cats
Can you tell us about
jobs in Hollywood?
Yes
No
jobs in Hollywood
how to get a good job in Hollywood
Can you tell us about
dogs?
Yes
No
dogs
how to get the right stuff for your new puppy
Can you tell us about
horses?
Yes
No
horses
how to clean and buff a horse's hooves for a horse show
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

Sources and Citations

Article Info

Categories: Copyright Problems Found By Bot | Copyright Problems

Thanks to all authors for creating a page that has been read 7 times.

Did this article help you?
Yes No