Go/Golang

1) Overview

-Google create this programming language
-In 2005-2006 the first commercial avaible dual core processors became avaible for consumers right for the public. And dual core up until that point in time in every programming language was built to take advantage of a single  core. Single CPQ and go was created to natively easily take advantage of multiplecores multiple across multiple machines.. And so go does parallel computing concurrency design patterns and parallel computing concurrency design patterns and parallel computing really well and it is built to do it easily and it is super fast. And so 2006 first dual core processors came out . No programming  languages had been  built to natively easily take advantage of multiple cores.

-In 2009 the ope source lanugage in 2012. The languauage was released March 2012 is released version 1.

-why go?
  * efficient compilation
     ** go creates compiled programs
          *** there is a garbage collector (GC)
          *** there is no virtual machine
  * effecient execution
  *easy of programming
  *the purpose of Go

-What Go is good for
  *what Google does / web services at scale
  *networking  - http, tcp, udp
  * concurrency / parallelism
  *systems
  *automation, command-line tools

-Guiding principles of design
  * expressive, comprehensible, sophisticated
  * clean, clear, easy to read

-Companies using go
  *Google, YouTube, Google Confidential , Docker, Kubernetes, InfluxDB, Twitter, Apple

-who made the golang
  *Ken Thompson (B, C, Unix, UTF-8, solely responsible for designing and implementing the original Unix operating system, invented the B programming language, the direct predecessor to the C programming language,helped invent the C programming language)
  *Rob Pike (Unix, UTF-8)
  *Robert Griesemer (Hotspot,  JVM, Studied under the creator of Pascal)
  * and few other engineers at Google

-it is performant takes advantage of multiple cores does cocurrency design patterns really well which leads to parallel execution
-perfomes multiple-cores concurrency compiled network
-clean syntax
-powerful standard library
-garbage collected
-portable - compiles on many OS's
-backed by Google
-open source

Is used for:
-web apps
-network servers
-mobile applications
-machine learning
-image processing
-load balancers
-system admin
-hardware
-scrpits
-crypto


Go Playgroundhttps://play.golang.org/


2) Go Commands

go env  #  list golang variables

go version  #  

go help  #  

3)

4)

5)

6)

7)

8)

9)

10)

11)

12)

13)

14)

15)

16)

17)

18)

19)

20)

21)

22)

23)

24)

25)

26)

27)

28)

29)

30)

31)

32)

33)



100) Literature

a)https://www.youtube.com/user/toddmcleod
b) Bill Kenndy's book
c) Donovan and Kernighan's boook
d) Caleb Doxsey's book
e) go by example
f) language spec
g) effective go
h) presentation https://goo.gl/Tbz6Xf
i) https://github.com/GoesToEleven/GolangTraining
j) https://docs.google.com/document/d/1ckYpi6hcRkaBUEk975f54oGsHYHu7GhzOk7-nOrkNxo/edit
k)Caleb Doxsey website and his book http://www.doxsey.net/  http://amzn.to/1OnFtPY 
l) go by example https://gobyexample.com/ 
m) Bill Kennedy’s book http://amzn.to/1kGGsPv 
n) Donovan and Kernighan’s book http://amzn.to/1RIM5HP 
o) Go Web Programmin http://amzn.to/2dVlW07 
p) course outline: http://bit.ly/2Nih2a9 
r) course resources: https://goo.gl/4cxMbH other resources including books I like:  https://goo.gl/uNb5QJ
s) official documentation language spec &effective go
-golang.org - language, standard library
-godoc.org -standard library AND third-party packages
t) Asking questions - This is where you should post your questions: https://forum.golangbridge.org/


https://tour.golang.org/list
https://www.youtube.com/watch?v=G3PvTWRIhZA&list=PLQVvvaa0QuDeF3hP0wQoSxpkqgRcgxMqX

https://play.golang.org/p/g75BhKoLTwx

package main

import (
"fmt"
"strings"
)

const song = `
Elsa?
Do you want to build a snowman?
Come on, let's go and play!
I never see you anymore
Come out the door
It's like you've gone away
We used to be best buddies
And now we're not
I wish you would tell me why!
Do you want to build a snowman?
It doesn't have to be a snowman
Go away, Anna
Okay, bye
Do you want to build a snowman?
Or ride our bike around the halls?
I think some company is overdue
I've started talking to
The pictures on the walls!
It gets a little lonely
All these empty rooms
Just watching the hours tick by
(tick-tock tick-tock tick-tock tick-tock)

Komentarze

Popularne posty z tego bloga

Kubernetes

Helm

Ansible Tower / AWX