Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 710 for main1 (0.29 sec)

  1. src/cmd/go/go_test.go

    	tg.tempFile("src/main1/main.go", "package main\nimport _ \"p2\"\nfunc main() {}\n")
    
    	tg.run("list", "-f={{.Target}}", "p1")
    	p1 := strings.TrimSpace(tg.getStdout())
    	tg.run("list", "-f={{.Target}}", "p2")
    	p2 := strings.TrimSpace(tg.getStdout())
    	tg.run("list", "-f={{.Target}}", "main1")
    	main1 := strings.TrimSpace(tg.getStdout())
    
    	tg.run("install", "main1")
    
    	tg.mustExist(main1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  2. src/cmd/link/testdata/linkname/coro_asm/main.go

    // Copyright 2024 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.
    
    // Assembly reference of newcoro is not allowed.
    
    package main
    
    func main() {
    	newcoro()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 267 bytes
    - Viewed (0)
  3. 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)
  4. cni/cmd/istio-cni/main.go

    // parses prevResult according to the cniVersion
    package main
    
    import (
    	"fmt"
    	"os"
    
    	"github.com/containernetworking/cni/pkg/skel"
    	"github.com/containernetworking/cni/pkg/version"
    
    	"istio.io/istio/cni/pkg/plugin"
    	"istio.io/istio/pkg/log"
    	istioversion "istio.io/istio/pkg/version"
    )
    
    func main() {
    	if err := runPlugin(); err != nil {
    		os.Exit(1)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/cmd/vet/main.go

    	"golang.org/x/tools/go/analysis/passes/unreachable"
    	"golang.org/x/tools/go/analysis/passes/unsafeptr"
    	"golang.org/x/tools/go/analysis/passes/unusedresult"
    )
    
    func main() {
    	telemetry.Start()
    	objabi.AddVersionFlag()
    
    	telemetry.Inc("vet/invocations")
    	unitchecker.Main(
    		appends.Analyzer,
    		asmdecl.Analyzer,
    		assign.Analyzer,
    		atomic.Analyzer,
    		bools.Analyzer,
    		buildtag.Analyzer,
    		cgocall.Analyzer,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/trace/testdata/testprog/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    	"syscall"
    	"time"
    )
    
    func main() {
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatal(err)
    	}
    
    	// checkExecutionTimes relies on this.
    	var wg sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/cmd/gotraceraw/main.go

    // Copyright 2023 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 (
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"os"
    
    	"internal/trace/raw"
    	"internal/trace/version"
    )
    
    func init() {
    	flag.Usage = func() {
    		fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [mode]\n", os.Args[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/cmd/gotracevalidate/main.go

    // Copyright 2023 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 (
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"os"
    
    	"internal/trace"
    	"internal/trace/testtrace"
    )
    
    func init() {
    	flag.Usage = func() {
    		fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s\n", os.Args[0])
    		fmt.Fprintf(flag.CommandLine.Output(), "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 984 bytes
    - Viewed (0)
  9. src/cmd/preprofile/main.go

    // itself and is thus wasteful to perform in every invocation of the compiler.
    //
    // Usage:
    //
    //	go tool preprofile [-v] [-o output] -i input
    //
    //
    
    package main
    
    import (
    	"bufio"
    	"cmd/internal/objabi"
    	"cmd/internal/pgo"
    	"cmd/internal/telemetry"
    	"flag"
    	"fmt"
    	"log"
    	"os"
    )
    
    func usage() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/main.go

    		return "false"
    	case ternaryFlagTrue:
    		return "true"
    	}
    	return "unset"
    }
    
    func (t *ternaryFlag) IsBoolFlag() bool { return true } // parse like a boolean flag
    
    // Main is the main entry point for the linker code.
    func Main(arch *sys.Arch, theArch Arch) {
    	log.SetPrefix("link: ")
    	log.SetFlags(0)
    	telemetry.Start()
    	telemetry.Inc("link/invocations")
    
    	thearch = theArch
    	ctxt := linknew(arch)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top