- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for live (0.12 sec)
-
doc/go1.17_spec.html
<p> Given the declarations </p> <pre> type Point3D struct { x, y, z float64 } type Line struct { p, q Point3D } </pre> <p> one may write </p> <pre> origin := Point3D{} // zero value for Point3D line := Line{origin, Point3D{y: -4, z: 12.3}} // zero value for line.q.x </pre> <p> For array and slice literals the following rules apply: </p> <ul>
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) -
src/cmd/cgo/internal/test/callback.go
callbackToken++ i := callbackToken callbackFuncs[i] = f callbackMutex.Unlock() // Pass the address of i because the C function was written to // take a pointer. We could pass an int if we felt like // rewriting the C code. C.callback(unsafe.Pointer(&i)) callbackMutex.Lock() delete(callbackFuncs, i) callbackMutex.Unlock() } //export goCallback func goCallback(p unsafe.Pointer) {
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)