Robert Griesemer Languages created Sawzall Go V 8
Robert Griesemer Languages created: Sawzall, Go V 8 Java. Script engine Java Hot. Spot virtual machin Chubby Rob Pike Ken Thompson Languages created: squeak, newsqueak, Sawzall, Go. Worked at: Bell Labs, Google. invented: UTF-8 Languages created: B, Go. Unix Plan 9 Worked at: Bell Labs, Google.
1. 背景 Less is more,Less can be more
1. 背景--安装�境 export GOROOT=/Users/qpzhang/dev/go export GOPATH=/Users/qpzhang/gocode export PATH=$PATH: $GOROOT/bin: $GOPATH/bin go version go help
2. �法 -- keywords(25个) package import func var type const chan map struct interface for range select switch case fallthrough break continue default return if else goto defer go
2. �法 -- 基本�型和函数 int 8 int 16 int 32 int 64 bool byte iota string float 32 float 64 uint 8 uint 16 uint 32 uint 64 complex 128 append cap close copy imag len make new panic println real recover
2. �法 -- package http: //labix. org/gopkg. in
2. �法 -- if & switch
2. �法 -- switch
3. 数据�构 -- array & slice
4. 特性 -- defer、panic、recover
4. 特性 -- channel、goroutine 4 K
4. 特性 -- channel、goroutine
4. 特性 -- channel、goroutine M: 内核OS�程 G: goroutine P: �度器
4. 特性 -- select
4. 特性 -- error are values
5. �准� io flag fmt os strings strconv encoding regexp database net mime html time crypto hash compress byte testing runtime debug log reflect
6. SDK gopkg. in/mgo. v 2 github. com/deuill/go-php gopkg. in/redis. v 3 github. com/sbinet/go-python gopkg. in/gorp. v 1 (mysql) github. com/urfave/negroni (martini) github. com/Shopify/go-lua gopkg. in/yaml. v 2 github. com/facebookgo/grace github. com/robertkrimen/otto (js) github. com/gogo/protobuf github. com/golang/oauth 2 github. com/aws-sdk-go github. com/Workiva/go-datastructures github. com/golang/glog github. com/sjwhitworth/golearn github. com/inconshreveable/log 15 github. com/alecthomas/log 4 go gopkg. in/zeromq/czmq. v 2 github. com/cdipaolo/goml github. com/visualfc/goqt (cn) github. com/derekparker/delve github. com/streadway/amqp more. . .
7. 框架 Web. Framework microservices Beego(CN) github. com/astaxie/beego goa autogen、plugin) github. com/goadesign/goa (design first、 Martini github. com/go-martini/martini go-kit github. com/go-kit/kit (twitter/finagle) gin(new) github. com/gin-gonic/gin micro github. com/micro (ecosystem) revel github. com/revel kite(koding) github. com/koding/kite more
ready for go ? 学�步� 1. vimgo Sublime 1. 《An Introduction to Programming in Go. pdf》 《Network programming with Go. pdf》 The Go Programming Language Specification 1. SDK、�目、框架 、dotgo gopheracademy
参考�料 http: //dave. cheney. net/resources-for-new-go-programmers http: //www. oschina. net/translate/why-program-in-go? print http: //guolei. us/sanjuban-go-birth/ http: //www. slideshare. net/while 42/an-introduction-to-programming-in-go http: //gopl-zh. b 0. upaiyun. com/ch 0 -01. html http: //labix. org/gopkg. in https: //golang. org/ref/spec https: //blog. golang. org/errors-are-values http: //morsmachine. dk/go-scheduler
- Slides: 44