16 lines
155 B
Go
16 lines
155 B
Go
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)
|
|
}
|