aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/src/testlist/example_test.go
blob: 0298dfde81e2a3926cb644187c39a2dcd72147fd (plain)
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")
}