Simple & Efficient
Go is designed to be simple, easy to read and write. Built-in concurrency support makes high-performance program development simple and fun.
package main
import "fmt"
func main() {
fmt.Println("Hello, GoHub!")
// Simple, Concurrent, Fun
go func() {
fmt.Println("Concurrency is easy!")
}()
}
package main
import (
"fmt"
"sync"
"time"
)
func worker(id int, wg *sync.WaitGroup) {
defer wg.Done()
fmt.Printf("Worker %d starting
", id)
time.Sleep(time.Second)
fmt.Printf("Worker %d done
", id)
}
func main() {
var wg sync.WaitGroup
for i := 1; i <= 5; i++ {
wg.Add(1)
go worker(i, &wg)
}
wg.Wait()
}
High-Performance Concurrency
Lightweight Goroutines and powerful channels make concurrent programming smooth as silk. Fully utilize multi-core performance to easily build high-concurrency applications.
Rich Ecosystem
Strong community support, comprehensive toolchain










