A struct is a collection of fields.
struct
(And a type declaration does what you'd expect.)
type
package main import "fmt" type Vertext struct { X int Y int } func main() { fmt.Println(Vertext{1,2}) }