- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for function (0.18 sec)
-
doc/go1.17_spec.html
when the function is invoked, not when the "defer" statement is executed. </p> <p> For instance, if the deferred function is a <a href="#Function_literals">function literal</a> and the surrounding function has <a href="#Function_types">named result parameters</a> that are in scope within the literal, the deferred function may access and modify the result parameters before they are returned.
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/cmd/cgo/doc.go
is different from the same C type used in another. Any C function (even void functions) may be called in a multiple assignment context to retrieve both the return value (if any) and the C errno variable as an error (use _ to skip the result value if the function returns void). For example: n, err = C.sqrt(-1) _, err := C.voidFunc() var n, err = C.sqrt(1) Calling C function pointers is currently not supported, however you can
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/go/types/65772.md
The [Func] type, which represents a function or method symbol, now has a [Func.Signature] method that returns the function's type, which
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 19 14:33:17 GMT 2024 - 161 bytes - Viewed (0) -
misc/wasm/wasm_exec.js
// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported // function. A goroutine can switch to a new stack if the current stack is too small (see morestack function). // This changes the SP, thus we have to update the SP used by the imported function. // func wasmExit(code int32) "runtime.wasmExit": (sp) => { sp >>>= 0;
JavaScript - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon May 22 17:47:47 GMT 2023 - 16.3K bytes - Viewed (1) -
src/cmd/cgo/ast.go
ctxField ctxParam ctxAssign2 // assignment of a single expression to two variables ctxSwitch ctxTypeSwitch ctxFile ctxDecl ctxSpec ctxDefer ctxCall // any function call other than ctxCall2 ctxCall2 // function call whose result is assigned to two variables ctxSelector ) // walk walks the AST x, calling visit(f, x, context) for each node.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
src/arena/arena.go
// arena it may have been allocated from, returning the copy. If it was not // allocated from an arena, it is returned untouched. This function is useful // to more easily let an arena-allocated value out-live its arena. // T must be a pointer, a slice, or a string, otherwise this function will panic. func Clone[T any](s T) T { return runtime_arena_heapify(s).(T) } //go:linkname reflect_arena_New reflect.arena_New
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Oct 12 20:23:36 GMT 2022 - 4.3K bytes - Viewed (0) -
src/cmd/api/testdata/src/pkg/p1/p1.go
// Deprecated: use B. A = 1 a = 11 A64 int64 = 1 AIsLowerA = a // previously declared ) const ( ConversionConst = MyInt(5) ) // Variables from function calls. var ( V = ptwo.F() // Deprecated: use WError. VError = BarE() V1 = Bar1(1, 2, 3) V2 = ptwo.G() ) // Variables with conversions: var ( StrConv = string("foo")
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Dec 02 16:29:41 GMT 2022 - 3.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
func nestedCall(f func()) { // callback(x) calls goCallback(x) callbackMutex.Lock() 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() }
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) -
src/cmd/asm/internal/asm/operand_test.go
wantName = wantName[1:] } if i := strings.Index(wantName, "+"); i >= 0 { wantName = wantName[:i] } } if ok != isFuncSym || name != wantName { t.Errorf("fail at %s as function address: got %s, %v; expected %s, %v", test.input, name, ok, wantName, isFuncSym) } } }) } } type operandTest struct { input, output string } type badOperandTest struct {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 18:31:05 GMT 2023 - 23.9K bytes - Viewed (0) -
src/bufio/bufio_test.go
return []byte(data), err }, // ReadLine doesn't fit the data/pattern easily // so we leave it out. It should be covered via // the ReadSlice test since ReadLine simply calls // ReadSlice, and it's that function that handles // the last byte. } // Try all readers with UnreadByte. for rno, read := range readers { // Some input data that is longer than the minimum reader buffer size. const n = 10
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 10 18:56:01 GMT 2023 - 51.5K bytes - Viewed (0)