Source file tour/moretypes/structs.go
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 type Vertex struct { 8 X int 9 Y int 10 } 11 12 func main() { 13 fmt.Println(Vertex{1, 2}) 14 } 15
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 type Vertex struct { 8 X int 9 Y int 10 } 11 12 func main() { 13 fmt.Println(Vertex{1, 2}) 14 } 15