Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 353 for Main (0.95 sec)

  1. src/cmd/compile/internal/ssa/_gen/main.go

    // license that can be found in the LICENSE file.
    
    // The gen command generates Go code (in the parent directory) for all
    // the architecture-specific opcodes, blocks, and rewrites.
    package main
    
    import (
    	"bytes"
    	"flag"
    	"fmt"
    	"go/format"
    	"log"
    	"math/bits"
    	"os"
    	"path"
    	"regexp"
    	"runtime"
    	"runtime/pprof"
    	"runtime/trace"
    	"sort"
    	"strings"
    	"sync"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    // This file is here just to cause problems.
    // main.swig turns into a file also named main.go.
    // Make sure cmd/go keeps them separate
    // when both are passed to cgo.
    
    package main
    
    //int F(void) { return 1; }
    import "C"
    import (
    	"fmt"
    	"os"
    )
    
    func F() int { return int(C.F()) }
    
    func main() {
    	if x := int(C.F()); x != 1 {
    		fatal("x = %d, want 1", x)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 975 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testshared/testdata/issue44031/main/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 "testshared/issue44031/b"
    
    type t int
    
    func (t) m() {}
    
    type i interface{ m() } // test that unexported method is correctly marked
    
    var v interface{} = t(0)
    
    func main() {
    	b.F()
    	v.(i).m()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 373 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testplugin/testdata/unnamed2/main.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    package main
    
    // // No C code required.
    import "C"
    
    func FuncInt() int { return 2 }
    
    func FuncRecursive() X { return X{} }
    
    type Y struct {
    	X *X
    }
    type X struct {
    	Y Y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 366 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testplugin/testdata/issue19418/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() {
    	p, err := plugin.Open("plugin.so")
    	if err != nil {
    		panic(err)
    	}
    
    	val, err := p.Lookup("Val")
    	if err != nil {
    		panic(err)
    	}
    	got := *val.(*string)
    	const want = "linkstr"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 511 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/testdata/gcdata/main/main.go

    // This test run under GODEBUG=clobberfree=1. The check
    // *x[i] == 12345 depends on this debug mode to clobber
    // the value if the object is freed prematurely.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    	"testshared/gcdata/p"
    )
    
    var x p.T
    
    func main() {
    	for i := range x {
    		x[i] = new(int)
    		*x[i] = 12345
    	}
    	runtime.GC()
    	runtime.GC()
    	runtime.GC()
    	for i := range x {
    		if *x[i] != 12345 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 763 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testplugin/testdata/issue44956/main.go

    // plugin2 is then loaded. base.init already ran, so it doesn't run
    // again. When base.stmp is not exported, plugin2's base.X points to
    // its own private base.stmp, which is not initialized, fail.
    
    package main
    
    import "plugin"
    
    func main() {
    	_, err := plugin.Open("issue44956p1.so")
    	if err != nil {
    		panic("FAIL")
    	}
    
    	p2, err := plugin.Open("issue44956p2.so")
    	if err != nil {
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/dist/main.go

    	"clean":     cmdclean,
    	"env":       cmdenv,
    	"install":   cmdinstall,
    	"list":      cmdlist,
    	"test":      cmdtest,
    	"version":   cmdversion,
    }
    
    // main takes care of OS-specific startup and dispatches to xmain.
    func main() {
    	os.Setenv("TERM", "dumb") // disable escape codes in clang errors
    
    	// provide -check-armv6k first, before checking for $GOROOT so that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go

    // Usage:
    //
    //  checkdwarf <exe> <suffix>
    //
    // Opens <exe>, which must be an executable or a library and checks that
    // there is an entry in .debug_info whose name ends in <suffix>
    
    package main
    
    import (
    	"debug/dwarf"
    	"debug/elf"
    	"debug/macho"
    	"debug/pe"
    	"fmt"
    	"os"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "checkdwarf executable-or-library DIE-suffix\n")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue24161e1/main.go

    Austin Clements <******@****.***> 1683224724 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top