Over a million developers have joined DZone.

Go Language for Java Developers Part 1

Part 1 of a 5 part series that explains the Go language to Java developers.

· Java Zone

Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems, brought to you in partnership with AppDynamics.

The Go language is normally known as golang. It's a general purpose programming language developed by Google in 2007 by three Google employees namely Robert Griesemer, Rob Pike, and Ken Thompson. In November 2008 Google had announced the Go Language to the public and made it open source

The Go language compiler is available for the Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, Plan 9, and Microsoft Windows operating systems and the i386, amd64, ARM and IBM POWER processor architectures. 

Beginner Go language developers should visit following links. 

As you are reading this article, it means I can assume that you know about Go Language and its advantage and shortcoming. As the title suggest its for Java developers, so I can also assume that you have knowledge of core Java. 

 Install Go Language 
  1. Download installer binary / package / installer as per your OS
  2. https://golang.org/dl/
  3. Current version is go 1.4.2
  4. Run package to install Go language
  5. After setup completes, you need to set environment variable to go language
  6. In case of OX, Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.bash_profile: export PATH=$PATH:/usr/local/go/bin
  7. To verify installation, you can execute following command $go version go version go1.4.2 darwin/amd64
Go Language IDE
Officially, the Go Language don't have an IDE but there are many open source 3rd party IDEs / Plugins are available. If you are familiar with IntelliJ or Eclipse then you can install plug-in for Go Language. For more details, please visit following link http://geekmonkey.org/articles/20-comparison-of-ides-for-google-go 

Now, you have enough details to jump start coding. In next article I will cover the fundamentals and syntax of Go Language.

More Reading

The Java Zone is brought to you in partnership with AppDynamics. AppDynamics helps you gain the fundamentals behind application performance, and implement best practices so you can proactively analyze and act on performance problems as they arise, and more specifically with your Java applications. Start a Free Trial.


Published at DZone with permission of Ketan Parmar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}