Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for exits (0.15 sec)

  1. doc/go1.17_spec.html

    <pre>
    func main() { … }
    </pre>
    
    <p>
    Program execution begins by initializing the main package and then
    invoking the function <code>main</code>.
    When that function invocation returns, the program exits.
    It does not wait for other (non-<code>main</code>) goroutines to complete.
    </p>
    
    <h2 id="Errors">Errors</h2>
    
    <p>
    The predeclared type <code>error</code> is defined as
    </p>
    
    <pre>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/callback.go

    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    		if s.(string) != "callback panic" {
    			t.Fatal("wrong panic:", s)
    		}
    		if lockedOSThread() {
    			t.Fatal("locked OS thread on exit from TestCallbackPanic")
    		}
    	}()
    	nestedCall(func() { panic("callback panic") })
    	panic("nestedCall returned")
    }
    
    func testCallbackPanicLoop(t *testing.T) {
    	// Make sure we don't blow out m->g0 stack.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
Back to top