Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Kissling (0.18 sec)

  1. doc/go1.17_spec.html

    </p>
    
    <pre>
    s[0] == 2
    s[1] == 3
    s[2] == 4
    </pre>
    
    <p>
    For convenience, any of the indices may be omitted. A missing <code>low</code>
    index defaults to zero; a missing <code>high</code> index defaults to the length of the
    sliced operand:
    </p>
    
    <pre>
    a[2:]  // same as a[2 : len(a)]
    a[:3]  // same as a[0 : 3]
    a[:]   // same as a[0 : len(a)]
    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

    	callbackMutex.Unlock()
    }
    
    //export goCallback
    func goCallback(p unsafe.Pointer) {
    	i := *(*int)(p)
    
    	callbackMutex.Lock()
    	f := callbackFuncs[i]
    	callbackMutex.Unlock()
    
    	if f == nil {
    		panic("missing callback function")
    	}
    	f()
    }
    
    func testCallback(t *testing.T) {
    	var x = false
    	nestedCall(func() { x = true })
    	if !x {
    		t.Fatal("nestedCall did not call func")
    	}
    }
    
    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