Link Search Menu Expand Document

Go Struct Examples

If you know C then Go structs will seem similar
type Car struct {
    nrWheels int
    speed    int
    name     string
}
See also: on how to implement interfaces with types