Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- )
- type Point struct {
- x float64
- y float64
- }
- func main() {
- p := Point{x: 3.0, y: 4.0}
- fmt.Println(p.x)
- fmt.Println(p.y)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement