Sign in
go
/
website
/
fa6fe8b9e993020027675e7122d2c6d5b7bf76f5
/
.
/
_content
/
tour
/
moretypes
/
struct-pointers.go
blob: 901f00391cc5faec90547dc1c338e3ef90aedf3a [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
type Vertex struct {
X int
Y int
}
func main() {
v := Vertex{1, 2}
p := &v
p.X = 1e9
fmt.Println(v)
}