github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/src/testlist/example_test.go (about) 1 package testlist 2 3 import ( 4 "fmt" 5 ) 6 7 func ExampleSimple() { 8 fmt.Println("Test with Output.") 9 10 // Output: Test with Output. 11 } 12 13 func ExampleWithEmptyOutput() { 14 fmt.Println("") 15 16 // Output: 17 } 18 19 func ExampleNoOutput() { 20 _ = fmt.Sprint("Test with no output") 21 }