...

Text file src/go/doc/testdata/examples/whole_file.golden

Documentation: go/doc/testdata/examples

     1-- .Play --
     2package main
     3
     4import "fmt"
     5
     6type X int
     7
     8func (X) Foo() {
     9}
    10
    11func (X) TestBlah() {
    12}
    13
    14func (X) BenchmarkFoo() {
    15}
    16
    17func main() {
    18	fmt.Println("Hello, world!")
    19}
    20-- .Output --
    21Hello, world!

View as plain text