Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExamplePass (0.16 sec)

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

    stdout 'panic: test executed panic\(nil\) or runtime\.Goexit'
    
    -- go.mod --
    module examplegoexit
    
    go 1.16
    -- example_test.go --
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func ExamplePass() {
    	fmt.Println("pass")
    	// Output:
    	// pass
    }
    
    func ExampleGoexit() {
    	runtime.Goexit()
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 403 bytes
    - Viewed (0)
Back to top