- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,847 for main2 (0.09 sec)
-
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) -
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) -
src/cmd/cgo/internal/testplugin/testdata/issue22175/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 ( "fmt" "os" "plugin" ) func main() { p2, err := plugin.Open("issue22175_plugin1.so") if err != nil { panic(err) } f, err := p2.Lookup("F") if err != nil { panic(err) } got := f.(func() int)() const want = 971
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 510 bytes - Viewed (0) -
cmd/cloud-controller-manager/main.go
// For more details, please refer to k8s.io/kubernetes/cmd/cloud-controller-manager/main.go // The current file demonstrate how other cloud provider should leverage CCM and it uses fake parameters. Please modify for your own use. package main import ( "os" "k8s.io/apimachinery/pkg/util/wait" cloudprovider "k8s.io/cloud-provider" "k8s.io/cloud-provider/app"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 19 13:01:01 UTC 2023 - 4.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/multi-project/groovy/exe/src/main/cpp/main.cpp
#include "hello.h" int main () { hello(); return 0;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 59 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go
// in some stdlib package (ex: unicode), however there // may be references to that map var from a plugin that // gets loaded. package main import ( "fmt" "plugin" "unicode" ) func main() { p, err := plugin.Open("issue62430.so") if err != nil { panic(err) } s, err := p.Lookup("F") if err != nil { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 13:18:51 UTC 2023 - 804 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/managingTransitiveDependencies-excludeForConfiguration/kotlin/src/main/java/Main.java
import org.apache.commons.beanutils.PropertyUtils; public class Main { public static void main(String[] args) throws Exception { Object person = new Person(); PropertyUtils.setSimpleProperty(person, "name", "Bart Simpson"); PropertyUtils.setSimpleProperty(person, "age", 38); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 313 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/managingTransitiveDependencies-excludeForDependency/groovy/src/main/java/Main.java
import org.apache.commons.beanutils.PropertyUtils; public class Main { public static void main(String[] args) throws Exception { Object person = new Person(); PropertyUtils.setSimpleProperty(person, "name", "Bart Simpson"); PropertyUtils.setSimpleProperty(person, "age", 38); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 313 bytes - Viewed (0) -
src/cmd/cgo/internal/testlife/testdata/main.go
//go:build test_run // Run the game of life in C using Go for parallelization. package main import ( "flag" "fmt" "cgolife" ) const MAXDIM = 100 var dim = flag.Int("dim", 16, "board dimensions") var gen = flag.Int("gen", 10, "generations") func main() { flag.Parse() var a [MAXDIM * MAXDIM]int32 for i := 2; i < *dim; i += 8 { for j := 2; j < *dim-3; j += 8 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 803 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/main.go
See the License for the specific language governing permissions and limitations under the License. */ package main import ( "os" "k8s.io/apiextensions-apiserver/pkg/cmd/server" genericapiserver "k8s.io/apiserver/pkg/server" "k8s.io/component-base/cli" ) func main() { ctx := genericapiserver.SetupSignalContext() cmd := server.NewServerCommand(ctx, os.Stdout, os.Stderr) code := cli.Run(cmd)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 888 bytes - Viewed (0)