http://rockalabs.com/ 

LET'S BUILD TOGETHER

Go

What is?

LET'S BUILD TOGETHER

  •  Go is an open source programming language created at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.
  • The language was announced in November 2009.
  • Take advantage of modern architectures (cores, CPUs) Ex. Rust, Elixir
  • It was born from the need to have systems large efficient but simple.

Inspired by C

LET'S BUILD TOGETHER

- It looks like C is a tool for programmers do great things, with few resources.

 

- Syntaxis similar to Python.

 

- Open Source, Community contribute.

Simplicity

LET'S BUILD TOGETHER

- Readable and compact == less code.

 

- More simple system of typed than others typed languages.

 

- Standard library with packages for common tasks.

 

- Concurrence

What is Golang good for?

LET'S BUILD TOGETHER

Yes

- Administration of
servers.
- Network Infrastructure
- Tools and systems for others programmers.
- Operating systems.
- Machine Learning.

Yes, but maybe is more complicated

- Web.

- Mobile.

Web development with GO

LET'S BUILD TOGETHER

- Frameworks: Beego, Gorilla, Revel, Martini, Hugo.

 

-  Cons: New frameworks, missing features, the development is more slow than Django or Rails.

 

- Pros: constant development, all project realize in Go.

Mobile development with GO

LET'S BUILD TOGETHER

-From December of 2014 Go supports Android development. Native or Library/Package

From August 2015 Go supports iOS development.

- Pros: the same code for all plataforms.

Companies using golang

LET'S BUILD TOGETHER

Installation

LET'S BUILD TOGETHER

a) Linux / ubuntu

$ sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
$ sudo apt-get update
$ sudo apt-get install golang

b)Mac OSX

installation with Brew:

$ brew install go

c) Windows

Download a executable https://golang.org/doc/install?download=go1.6.windows-amd64.msi

Data types in Go

LET'S BUILD TOGETHER

strings, integers, floats,

booleans, etc. 

Example "Hello Rocka"

LET'S BUILD TOGETHER

package main

import "fmt"

func main() {
    fmt.Println("Hello, Rocka")
}

Any questions ?

Thanks!

LET'S BUILD TOGETHER

http://rockalabs.com

@Juankzu

Juan Camilo Zuluaga

Web Developer

Go

By product@dailybot.com

Go

Quick introduction of Go

  • 1,633