Source file src/go/doc/testdata/examples/whole_function.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(x int) {
     8  }
     9  
    10  func Example() {
    11  	fmt.Println("Hello, world!")
    12  	// Output: Hello, world!
    13  }
    14  

View as plain text