- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 4,301 for main2 (0.09 sec)
-
src/cmd/cgo/internal/testplugin/testdata/method3/main.go
// An unexported method can be reachable from the plugin via interface // when a package is shared. So it need to be live. package main import ( "plugin" "testplugin/method3/p" ) var i p.I func main() { pl, err := plugin.Open("method3.so") if err != nil { panic(err) } f, err := pl.Lookup("F") if err != nil { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 533 bytes - Viewed (0) -
test/fixedbugs/issue37513.dir/main.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bytes" "fmt" "os" "os/exec" ) func main() { if len(os.Args) > 1 { // Generate a SIGILL. sigill() return } // Run ourselves with an extra argument. That process should SIGILL.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 02 18:46:06 UTC 2020 - 593 bytes - Viewed (0) -
test/fixedbugs/bug345.dir/main.go
// license that can be found in the LICENSE file. package main import ( "bufio" goio "io" "./io" ) func main() { // The errors here complain that io.X != io.X // for different values of io so they should be // showing the full import path, which for the // "./io" import is really ..../go/test/io. // For example: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 19 06:26:35 UTC 2021 - 978 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main0.c
#include "p.h" #include "libgo.h" // Tests libgo.so to export the following functions. // int8_t DidInitRun(); // int8_t DidMainRun(); // int32_t FromPkg(); // uint32_t Divu(uint32_t, uint32_t); int main(void) { int8_t ran_init = DidInitRun(); if (!ran_init) { fprintf(stderr, "ERROR: DidInitRun returned unexpected results: %d\n", ran_init); return 1; } int8_t ran_main = DidMainRun();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/main.go
// license that can be found in the LICENSE file. package main import "os" var cmds = map[string]func(){} func register(name string, f func()) { if cmds[name] != nil { panic("duplicate registration: " + name) } cmds[name] = f } func registerInit(name string, f func()) { if len(os.Args) >= 2 && os.Args[1] == name { f() } } func main() { if len(os.Args) < 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 651 bytes - Viewed (0) -
src/runtime/testdata/testprognet/main.go
// license that can be found in the LICENSE file. package main import "os" var cmds = map[string]func(){} func register(name string, f func()) { if cmds[name] != nil { panic("duplicate registration: " + name) } cmds[name] = f } func registerInit(name string, f func()) { if len(os.Args) >= 2 && os.Args[1] == name { f() } } func main() { if len(os.Args) < 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 651 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/toolingApi/runBuild/groovy/src/main/java/org/gradle/sample/Main.java
package org.gradle.sample; import org.gradle.tooling.BuildLauncher; import org.gradle.tooling.GradleConnector; import org.gradle.tooling.ProjectConnection; import java.io.File; public class Main { public static void main(String[] args) { // Configure the connector and create the connection GradleConnector connector = GradleConnector.newConnector(); if (args.length > 0) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
docs/extensions/s3zip/examples/minio-go/main.go
package main import ( "context" "io" "log" "os" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" ) func main() { s3Client, err := minio.New("minio-server-address:9000", &minio.Options{ Creds: credentials.NewStaticV4("access-key", "secret-key", ""), }) if err != nil { log.Fatalln(err) } var opts minio.GetObjectOptions // Add extract header to request:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 14 18:04:14 UTC 2021 - 694 bytes - Viewed (0) -
test/typeparam/pairimp.dir/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "./a" "fmt" "unsafe" ) func main() { p := a.Pair[int32, int64]{1, 2} if got, want := unsafe.Sizeof(p.Field1), uintptr(4); got != want { panic(fmt.Sprintf("unexpected f1 size == %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 716 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/main/main.go
See the License for the specific language governing permissions and limitations under the License. */ package main import ( "fmt" webhooktesting "k8s.io/apiserver/pkg/admission/plugin/webhook/testing" ) func main() { server := webhooktesting.NewTestServer(nil) server.StartTLS() fmt.Println("serving on", server.URL) select {}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Aug 25 00:00:45 UTC 2019 - 807 bytes - Viewed (0)