github.com/sercand/please@v13.4.0+incompatible/test/go_rules/example_test.go (about)

     1  package whatever
     2  
     3  import "fmt"
     4  
     5  // These are straight from the docs.
     6  
     7  func ExampleHello() {
     8  	fmt.Println("hello")
     9  	// Output: hello
    10  }
    11  
    12  func ExampleSalutations() {
    13  	fmt.Println("hello, and")
    14  	fmt.Println("goodbye")
    15  	// Output:
    16  	// hello, and
    17  	// goodbye
    18  }