Guest User

Untitled

a guest
Dec 17th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. type Vertex struct {
  6. X int
  7. Y int
  8. Z int
  9. }
  10.  
  11. func main() {
  12. fmt.Println(Vertex{1, 2, 3})
  13. v := Vertex{1, 2, 3}
  14. v.Y = 8
  15. fmt.Println(v.Z,v.Y)
  16. }
Add Comment
Please, Sign In to add comment