package main

import "fmt"

func main() {
	// section: main
	// Anonymous struct - defined and used in one place
	point := struct {
		X int
		Y int
	}{
		X: 10,
		Y: 20,
	}

	fmt.Printf("Point: %+v\n", point)
	fmt.Printf("X: %d, Y: %d\n", point.X, point.Y)
	// section: main
}

/*
// section: output
$ go run main.go
Point: {X:10 Y:20}
X: 10, Y: 20
// section: output
*/
