dep - The official experiment ◦ Godep ◦ Govendor ◦ Glide ◦ many others • Modules ◦ Preliminary support ◦ No need for GOPATH anymore ◦ Go 1.13 (August 2019)
functions in the same address space ◦ Goroutines are multiplexed onto multiple OS threads • Channels ◦ Typed, synchronized, thread-safe by design ◦ Buffered and Unbuffered (default)
int) { a, b := 0, 1 c <- a for i := 0; i < n; i++ { a, b = b, a+b c <- a } close(c) } func main() { c := make(chan int) go fibonacci(c, 10) for i := range c { fmt.Println(i) } }