Skip to content

Instantly share code, notes, and snippets.

@surendrans
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surendrans/1662733493f1c664d521 to your computer and use it in GitHub Desktop.
Save surendrans/1662733493f1c664d521 to your computer and use it in GitHub Desktop.
GOLang Introduction

####What is GOlang ? Current Beta version Go 1.3 Beta 2 is released!

Compiled
Garbage collected 
Concurrent

Compiled

Garbage collected

Memeory managed for you
Some languages have garbagge collection, but there will be some latency in that , but go is very fast in this

Concurrent

concurrency is part of the language, in other languages concurrency can be achieved b adding some library and so on

Will look like c but not.

Unique language, has lot of characteristics of diff languages Not a language that directly inherits from c.

####From Google

Project at google from scratch<br/ > Systems level language <br/ > Its not a exprimental language, google is making some serious talk in this language<br/ > Internally at google

####What is difference?

Unique from other languages. <br/ > go is static lang. <br/ > Memory safe and latency free. <br/ > We need to be more careful about memory managment in c or c++. <br/ > C and assebly level are not designed for ease of use. <br/ > Fast complie times.

####Shocking about go

No inheritence<br/ > We can use compostition over inheritence<br/ > http://en.wikipedia.org/wiki/Composition_over_inheritance<br/ > No method overloading<br/ > Confusing, slow donw the compiler, use unique methods

####Devlopment env Eclipse go plugin Intellige http://go-ide.com/

####Install Go http://golang.org/doc/install

####Packages Available externally from source repo<br/ > Built in packages http://golang.org/pkg/

####Tour to go-lang http://tour.golang.org/

####Create a workspace Add it in env path GOPATH = workspace path Type go frm cmd

####helloworld

go run filename
go build filename
go install spritle.com\hello 

Go introduction video <br/ > http://www.youtube.com/watch?v=XCsL89YtqCs

Recommened video tutorial :<br/ > http://www.youtube.com/watch?v=CO3Wn9nBN1Y&list=PLoRtzsDuUiOB4PHvtiEklGaXp3L-D6WTh

###Useful Urls :

http://willnorris.com/2014/05/go-rest-apis-and-pointers

http://mwholt.blogspot.in/2013/05/writing-go-golang-web-app-with-nginx.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment