Sign in
go
/
tour
/
e9654a836953fd6bbe0763e544ea0d72737e00d3
/
.
/
content
/
prog
/
tour
/
the-new-function.go
blob: cc4db9f2df0eda6521a631873ff172cb412ffd60 [
file
] [
log
] [
blame
]
// +build OMIT
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)
}