...

Source file src/go/doc/testdata/examples/inspect_signature.go

Documentation: go/doc/testdata/examples

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package foo_test
     6  
     7  import (
     8  	"bytes"
     9  	"io"
    10  )
    11  
    12  func getReader() io.Reader { return nil }
    13  
    14  func do(b bytes.Reader) {}
    15  
    16  func Example() {
    17  	getReader()
    18  	do()
    19  	// Output:
    20  }
    21  
    22  func ExampleIgnored() {
    23  }
    24  

View as plain text