1
2
3
4
5 package pkg
6
7 import "fmt"
8
9
10 func Example() {
11 fmt.Println("Package example output")
12
13 }
14
15
16 func ExampleExportedFunc() {
17 fmt.Println("Function example output")
18
19 }
20
21
22 func ExampleExportedFunc_two() {
23 fmt.Println("Function example two output")
24
25 }
26
27
28 func ExampleExportedType() {
29 fmt.Println("Type example output")
30
31 }
32
33
34 func ExampleExportedType_ExportedMethod() {
35 fmt.Println("Method example output")
36
37 }
38
39
40 func Example_multiline() {
41 fmt.Println("Multiline\nexample\noutput")
42
43
44
45
46 }
47
48
View as plain text