// A struct is a collection of 'fields'

package main

import "fmt"

type Vertex struct {
    X int
    Y int
}

func main() {
    fmt.Println(Vertex{1, 2})
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: