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 } 22