image_package1.go 281 B

123456789101112131415
  1. // Copyright 2012 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package main
  5. import (
  6. "fmt"
  7. "image"
  8. )
  9. func main() {
  10. p := image.Point{2, 1}
  11. fmt.Println("X is", p.X, "Y is", p.Y)
  12. }