- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 3,282 for main2 (0.04 sec)
-
platforms/documentation/docs/src/snippets/toolingApi/idea/groovy/src/main/java/org/gradle/sample/Main.java
package org.gradle.sample; import org.gradle.tooling.*; import org.gradle.tooling.model.*; import org.gradle.tooling.model.idea.*; 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) { connector.useInstallation(new File(args[0]));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 2.5K bytes - Viewed (0) -
test/typeparam/issue48306.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" type S struct{} func (*S) F() *S { return nil } func main() { var _ a.I[*S] = &S{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 276 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main8.c
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test preemption. #include <stdlib.h> #include "libgo8.h" int main() { GoFunction8(); // That should have exited the program. abort();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 306 bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/iface/main.go
// Copyright 2017 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 "testshared/iface_a" import "testshared/iface_b" func main() { if iface_a.F() != iface_b.F() { panic("empty interfaces not equal") } if iface_a.G() != iface_b.G() { panic("non-empty interfaces not equal") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 399 bytes - Viewed (0) -
test/typeparam/valimp.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" ) func main() { var v1 a.Value[int] a.Set(&v1, 1) if got, want := a.Get(&v1), 1; got != want { panic(fmt.Sprintf("Get() == %d, want %d", got, want)) } v1.Set(2) if got, want := v1.Get(), 2; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/main.go
// Copyright 2018 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 // extern int CFunc(void); import "C" import ( "fmt" "os" ) func main() { got := C.CFunc() const want = (1 << 8) | 2 if got != want { fmt.Printf("got %#x, want %#x\n", got, want) os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 380 bytes - Viewed (0) -
test/typeparam/issue51250a.dir/main.go
// Copyright 2022 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" "./b" ) func main() { switch b.I.(type) { case a.G[b.T]: case int: panic("bad") case float64: panic("bad") default: panic("bad") } b.F(a.G[b.T]{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 03 00:23:02 UTC 2022 - 355 bytes - Viewed (0) -
test/typeparam/issue48462.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 ( "fmt" "reflect" "./a" ) func main() { e := []int{1, 2, 2, 3, 1, 6} got := a.Unique(e) want := []int{1, 2, 3, 6} if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 397 bytes - Viewed (0) -
test/fixedbugs/issue31959.dir/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 361 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue22295.pkg/main.go
// Copyright 2017 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. //go:build ignore package main import ( "log" "plugin" ) func main() { p, err := plugin.Open("issue.22295.so") if err != nil { log.Fatal(err) } f, err := p.Lookup("F") if err != nil { log.Fatal(err) } const want = 2503
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 486 bytes - Viewed (0)