Sign in
go
/
tour
/
65975571d00d1acfc0bfa297296440d5710b7f8e
/
.
/
content
/
prog
/
tour
/
the-new-function.go
blob: b1a7bac28a0d9cfc967173745e57e2247faf57c7 [
file
] [
log
] [
blame
]
package main
import "fmt"
type Vertex struct {
X, Y int
}
func main() {
v := new(Vertex)
fmt.Println(v)
v.X, v.Y = 11, 9
fmt.Println(v)
}