Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Go: An Introduction

Go: An Introduction

An introduction to the Go programming language. Deck was created for and targeted at a lunch and learn for developers at Blackstone Media (http://www.blackstonemedia.com/) and StarkNine (http://www.starknine.com/) in Louisville, KY.

Referenced Links:
- https://github.com/slogsdon/b (for code walkthrough)
- http://golang.org/
- http://tour.golang.org/
- http://godoc.org/

Presentation can be viewed at http://youtu.be/SI-okTfauyw

Shane Logsdon

June 06, 2014
Tweet

More Decks by Shane Logsdon

Other Decks in Programming

Transcript

  1. Why Use Go •  Standard Library •  Tooling •  Compiling

    •  Concurrency •  Deployment •  And more
  2. Standard Library •  Provides large chunk of necessary functionality • 

    encoding/json & encoding/xml •  flag •  io/ioutil •  net/http •  net/http/httptest •  testing •  Etc. •  External libraries offer convenience
  3. Compiling •  Compilation within seconds •  No waiting for VM

    to spin up •  Target multiple platforms with cross compilation •  Increase development efficiency
  4. Concurrency •  Goroutines •  lightweight asynchronous “processes” •  Channels • 

    transfer data between goroutines •  Example •  server handles individual requests in separate goroutines
  5. Deployment •  Can be single binary file •  Built for

    host platform and OS •  Quick compile process -> build on host •  Easy integration with CI/CD services