github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/doc/progs/image_package1.go (about)

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