Skip to content

Latest commit

 

History

History
47 lines (25 loc) · 1 KB

go.org

File metadata and controls

47 lines (25 loc) · 1 KB

Go

Some links

cheat-sheet https://golang.org/doc/effective_go.html http://jordanorelli.com/post/32665860244/how-to-use-interfaces-in-go

How to set up environment

How to write Go code export GOPATH=$HOME/work export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin/

Has lamda function,

Variable arguments

First arguments, then return values

Lexically (normally) scoped

Types, structs and other shit

Maps

https://blog.golang.org/go-maps-in-action

You can use structs as keys (also int, strings, pointers … )

Go concurrency patterns video

Generator

Function which generates a channel

Multiplexer

Takes several channels, returns one

Tests

go test ./… runs in parallel

If it’s not what you want (in this case your tests are probably suck) then use `-p` flag.