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

     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  func foo(int)
     8  
     9  func Example() {
    10  	foo(42)
    11  	// Output:
    12  }
    13  

View as plain text