O'Reilly logo

Head First Go by Jay McGavren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1 syntax basics

Let's Get Going

Images

Are you ready to turbo-charge your software? Do you want a simple programming language that compiles fast? That runs fast? That makes it easy to distribute your work to users? Then you're ready for Go!Go is a programming language that focuses on simplicity and speed. It's much less complex than other languages, so it's quicker to learn. And it lets you make full use of today's multi-core computer processors, so your programs run faster. This chapter will show you all the Go features that will make your life as a developer easier, and make your users happier.

Images

Ready, set, Go!

Back in 2007, the search engine Google had a problem. They had to maintain programs with millions of lines of code. Before they could test new changes, they had to compile the code into a runnable form, a process which at the time took the better part of an hour. Needless to say, this was bad for developer productivity.

So Google engineers Robert Griesemer, Rob Pike, and Ken Thompson sketched out some goals for a new language:

• Fast compilation

• Less cumbersome code

• Unused memory freed automatically (garbage collection)

• Easy to write software that does several operations simultaneously (concurrency)

• Good support for processors with multiple cores

After a couple years of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required