Sign in
go
/
website
/
72dd19b3a4e2e5eb8721a1cc661a218985b05cc2
/
.
/
tour
/
content
/
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)
}