🐹

Go Reference

An open-source language that makes it easy to build simple, reliable, and efficient software. Essential syntax and code samples for professional development.

Variables

name := "Go" var age int = 10

Structs

type User struct { ID int Name string }

Error Handling

if err != nil { return err }

Goroutines

go func() { fmt.Println("Parallel") }()

Slices

nums := []int{1, 2} nums = append(nums, 3)

Interfaces

type Reader interface { Read(p []byte) (n int, err error) }