1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package testlist import ( "fmt" ) func ExampleSimple() { fmt.Println("Test with Output.") // Output: Test with Output. } func ExampleWithEmptyOutput() { fmt.Println("") // Output: } func ExampleNoOutput() { _ = fmt.Sprint("Test with no output") }