Sign in
go
/
website
/
refs/heads/master
/
.
/
_content
/
tour
/
moretypes
/
struct-fields.go
blob: bb71288454d87378ada5c3f060b170a7f1efea0c [
file
] [
log
] [
blame
]
//go:build OMIT
package main
import "fmt"
type Vertex struct {
X int
Y int
}
func main() {
v := Vertex{1, 2}
v.X = 4
fmt.Println(v.X)
}