- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for wrappers (0.15 sec)
-
src/cmd/cgo/internal/test/cgo_test.go
// license that can be found in the LICENSE file. //go:build cgo package cgotest import "testing" // The actual test functions are in non-_test.go files // so that they can use cgo (import "C"). // These wrappers are here for gotest to find. func Test1328(t *testing.T) { test1328(t) } func Test1560(t *testing.T) { test1560(t) } func Test1635(t *testing.T) { test1635(t) }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed May 17 21:53:11 GMT 2023 - 6.4K bytes - Viewed (0) -
misc/go_android_exec/main.go
// and temporary data. Then, it copies relevant parts of GOROOT to the device, // including the go tool built for android. // A lock file ensures this only happens once, even with concurrent exec // wrappers. func adbCopyGoroot() error { goTool, err := goTool() if err != nil { return err } cmd := exec.Command(goTool, "version") cmd.Stderr = os.Stderr out, err := cmd.Output() if err != nil {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Aug 21 17:46:57 GMT 2023 - 15.3K bytes - Viewed (0) -
src/cmd/cgo/doc.go
the call accordingly, but Go cannot. In Go, you must pass the pointer to the first element explicitly: C.f(&C.x[0]). Calling variadic C functions is not supported. It is possible to circumvent this by using a C function wrapper. For example: package main // #include <stdio.h> // #include <stdlib.h> // // static void myprint(char* s) { // printf("%s\n", s); // } import "C" import "unsafe"
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) -
src/cmd/cgo/ast.go
} f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath) f.Preamble += commentText(cg) + "\n" f.Preamble += "#line 1 \"cgo-generated-wrapper\"\n" } } case *ast.FuncDecl: // Also, reject attempts to declare methods on C.T or *C.T. // (The generated code would otherwise accept this // invalid input; see issue #57926.)
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) -
misc/ios/README
To use the go tool to run individual programs and tests, put $GOROOT/bin into PATH to ensure the go_ios_$GOARCH_exec wrapper is found. For example, to run the archive/tar tests: export PATH=$GOROOT/bin:$PATH GOOS=ios GOARCH=amd64 CGO_ENABLED=1 go test archive/tar The go_ios_exec wrapper uses GOARCH to select the emulator (amd64) or the device (arm64). However, further setup is required to run tests or programs directly on a device.
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Dec 29 21:49:26 GMT 2020 - 2.7K bytes - Viewed (0) -
.github/PULL_REQUEST_TEMPLATE
+ Lowercase verb after the colon + No trailing period + Keep the title as short as possible. ideally under 76 characters or shorter + No Markdown + The first PR comment (this one) is wrapped at 76 characters, unless it's really needed (ASCII art, table, or long link) + If there is a corresponding issue, add either `Fixes #1234` or `Updates #1234` (the latter if this is not a complete fix) to this comment
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Feb 21 02:07:46 GMT 2018 - 1.2K bytes - Viewed (0) -
doc/asm.html
<br> (For <code>DATA</code> and <code>GLOBL</code> items.) This data contains no pointers and therefore does not need to be scanned by the garbage collector. </li> <li> <code>WRAPPER</code> = 32 <br> (For <code>TEXT</code> items.) This is a wrapper function and should not count as disabling <code>recover</code>. </li> <li> <code>NEEDCTXT</code> = 64 <br> (For <code>TEXT</code> items.)
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Nov 28 19:15:27 GMT 2023 - 36.3K bytes - Viewed (0) -
misc/go_android_exec/README
CC_FOR_TARGET=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \ ./all.bash To run tests on the Android device, add the bin directory to PATH so the go tool can find the go_android_$GOARCH_exec wrapper generated by make.bash. For example, to run the go1 benchmarks export PATH=$GOROOT/bin:$PATH cd $GOROOT/test/bench/go1/
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon May 01 14:45:55 GMT 2023 - 732 bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/database/sql/64707.md
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Apr 12 20:57:18 GMT 2024 - 160 bytes - Viewed (0) -
misc/ios/go_ios_exec.go
os.RemoveAll(appdir) if err := assembleApp(appdir, os.Args[1]); err != nil { return 1, err } // This wrapper uses complicated machinery to run iOS binaries. It // works, but only when running one binary at a time. // Use a file lock to make sure only one wrapper is running at a time. // // The lock file is never deleted, to avoid concurrent locks on distinct // files with the same path.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 23.4K bytes - Viewed (0)