Sign in
go
/
website
/
b4564f4a8ce1a51d6c3e3c2571a1122924d525c7
/
.
/
_content
/
tour
/
moretypes
/
struct-fields.go
blob: b85607f59094dbc78ec3abcf7731e574d246d341 [
file
] [
log
] [
blame
]
// +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)
}