Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 4,442 for dain (0.04 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/issue18584/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 "plugin"
    
    func main() {
    	p, err := plugin.Open("plugin.so")
    	if err != nil {
    		panic(err)
    	}
    
    	sym, err := p.Lookup("G")
    	if err != nil {
    		panic(err)
    	}
    	g := sym.(func() bool)
    	if !g() {
    		panic("expected types to match, Issue #18584")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 424 bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/testdata/httptest/main/main.go

    // nothing special about net/http here, this is just a convenient way
    // to pull in a lot of code.
    
    package main
    
    import (
    	"net/http"
    	"net/http/httptest"
    )
    
    type statusHandler int
    
    func (h *statusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    	w.WriteHeader(int(*h))
    }
    
    func main() {
    	status := statusHandler(http.StatusNotFound)
    	s := httptest.NewServer(&status)
    	defer s.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:11 UTC 2019
    - 464 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/main.go

    package main
    
    import "cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/p"
    
    func pstring(s *string) {
    	println(*s)
    }
    
    func main() {
    	all := []*string{
    		&S1, &S2, &S3, &S4, &S5, &S6, &S7, &S8, &S9, &S10,
    		&p.S1, &p.S2, &p.S3, &p.S4, &p.S5, &p.S6, &p.S7, &p.S8, &p.S9, &p.S10,
    	}
    	for _, ps := range all {
    		pstring(ps)
    	}
    }
    
    var S1 string
    var S2 string
    var S3 string
    var S4 string
    var S5 string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 471 bytes
    - Viewed (0)
  4. src/cmd/link/testdata/pe-binutils/main.go

    // where a.rc is a text file with the following content:
    //
    // resname RCDATA {
    //   "Hello Gophers!\0",
    //   "This is a test.\0",
    // }
    
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 26 18:15:09 UTC 2021
    - 515 bytes
    - Viewed (0)
  5. test/typeparam/factimp.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() {
    	const want = 120
    
    	if got := a.Fact(5); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    
    	if got := a.Fact[int64](5); 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
    - 516 bytes
    - Viewed (0)
  6. test/typeparam/mapimp.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"
    	"reflect"
    	"strconv"
    )
    
    func main() {
    	got := a.Mapper([]int{1, 2, 3}, strconv.Itoa)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 661 bytes
    - Viewed (0)
  7. src/cmd/link/main.go

    // configuration of the architecture-specific variables.
    //
    // Then control flow passes to ld.Main, which parses flags, makes
    // some configuration decisions, and then gives the architecture
    // packages a second chance to modify the linker's configuration
    // via the ld.Arch.Archinit function.
    
    func main() {
    	var arch *sys.Arch
    	var theArch ld.Arch
    
    	buildcfg.Check()
    	switch buildcfg.GOARCH {
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 17:54:33 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/toolingApi/customModel/groovy/tooling/src/main/java/org/gradle/sample/Main.java

    import org.gradle.tooling.*;
    import org.gradle.sample.plugin.CustomModel;
    
    import java.io.File;
    import java.lang.Object;
    import java.lang.String;
    import java.lang.System;
    
    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.2K bytes
    - Viewed (0)
  9. test/typeparam/issue50485.dir/main.go

    package main
    
    import (
    	"./a"
    )
    
    func main() {
    	_ = a.OrdOption(a.Given[int]())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 82 bytes
    - Viewed (0)
  10. 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)
Back to top