Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Example_A (0.14 sec)

  1. src/cmd/go/testdata/script/test_source_order.txt

    // license that can be found in the LICENSE file.
    
    // Make sure that go test runs Example_Z before Example_A, preserving source order.
    
    package p
    
    import "fmt"
    
    var n int
    
    func Example_Z() {
    	n++
    	fmt.Println(n)
    	// Output: 1
    }
    
    func Example_A() {
    	n++
    	fmt.Println(n)
    	// Output: 2
    }
    -- example2_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 20:40:29 UTC 2020
    - 992 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_match_only_example.txt

    // license that can be found in the LICENSE file.
    
    // Make sure that go test runs Example_Z before Example_A, preserving source order.
    
    package p
    
    import "fmt"
    
    var n int
    
    func Example_Z() {
    	n++
    	fmt.Println(n)
    	// Output: 1
    }
    
    func Example_A() {
    	n++
    	fmt.Println(n)
    	// Output: 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 20:40:29 UTC 2020
    - 583 bytes
    - Viewed (0)
  3. src/go/doc/testdata/examples/empty.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func Example() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 206 bytes
    - Viewed (0)
  4. src/go/doc/example_test.go

    func ExampleVar1()   {} // invalid - no support for consts and vars
    
    func Example()               {}
    func Example_()              {} // invalid - suffix must start with a lower-case letter
    func Example_suffix()        {}
    func Example_suffix_xX_X_x() {}
    func Example_世界()           {} // invalid - suffix must start with a lower-case letter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top