Go (Golang) with goroutines, channels, interfaces, and idiomatic patterns. Use for .go files.
A simple, fast, and concurrent language developed by Google.
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
ch := make(chan string)
go func() {
ch <- "from goroutine"
}()
msg := <-ch
fmt.Println(msg)
}
Lightweight threads managed by the Go runtime.
go doSomething()
Typed conduits for communication between goroutines.
Implicitly implemented. If a struct has the methods, it implements the interface.
Do:
if err != nil)gofmt to format codeDon't:
_) blindly