Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,015 for gojs (0.05 sec)

  1. src/syscall/mkasm.go

    	"bytes"
    	"fmt"
    	"log"
    	"os"
    	"strings"
    )
    
    func main() {
    	if len(os.Args) != 3 {
    		log.Fatalf("Usage: %s <goos> <arch>", os.Args[0])
    	}
    	goos, arch := os.Args[1], os.Args[2]
    
    	syscallFilename := fmt.Sprintf("syscall_%s.go", goos)
    	syscallArchFilename := fmt.Sprintf("syscall_%s_%s.go", goos, arch)
    
    	in1, err := os.ReadFile(syscallFilename)
    	if err != nil {
    		log.Fatalf("can't open syscall file: %s", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/vet/vet_test.go

    				cmd.Env = append(cmd.Env, "GOOS=linux", "GOARCH=amd64")
    			}
    
    			dir := filepath.Join("testdata", pkg)
    			gos, err := filepath.Glob(filepath.Join(dir, "*.go"))
    			if err != nil {
    				t.Fatal(err)
    			}
    			asms, err := filepath.Glob(filepath.Join(dir, "*.s"))
    			if err != nil {
    				t.Fatal(err)
    			}
    			var files []string
    			files = append(files, gos...)
    			files = append(files, asms...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/runtime/debug/heapdump_test.go

    package debug_test
    
    import (
    	"os"
    	"runtime"
    	. "runtime/debug"
    	"testing"
    )
    
    func TestWriteHeapDumpNonempty(t *testing.T) {
    	if runtime.GOOS == "js" {
    		t.Skipf("WriteHeapDump is not available on %s.", runtime.GOOS)
    	}
    	f, err := os.CreateTemp("", "heapdumptest")
    	if err != nil {
    		t.Fatalf("TempFile failed: %v", err)
    	}
    	defer os.Remove(f.Name())
    	defer f.Close()
    	WriteHeapDump(f.Fd())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 12 00:32:29 UTC 2022
    - 2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/cfg/cfg.go

    		// Note that ctxt.GOOS/GOARCH are derived from the preference list
    		// (1) environment, (2) go/env file, (3) runtime constants,
    		// while go/build.Default.GOOS/GOARCH are derived from the preference list
    		// (1) environment, (2) runtime constants.
    		//
    		// We know ctxt.GOOS/GOARCH == runtime.GOOS/GOARCH;
    		// no matter how that happened, go/build.Default will make the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/list_all_gobuild.txt

    # go list all should work with GOOS=linux because all packages build on Linux
    env GOOS=linux
    env GOARCH=amd64
    go list all
    
    # go list all should work with GOOS=darwin, but it used to fail because
    # in the absence of //go:build support, p looked like it needed q
    # (p_test.go was not properly excluded), and q was Linux-only.
    #
    # Also testing with r and s that +build lines keep working.
    env GOOS=darwin
    go list all
    
    -- go.mod --
    go 1.17
    module m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 17:26:46 UTC 2023
    - 674 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/dist_list_missing.txt

    mkdir $WORK/goroot/pkg/tool/${GOOS}_${GOARCH}
    env GOROOT=$WORK/goroot
    
    ! go tool -n dist
    stderr 'go: no such tool "dist"'
    
    go tool dist list
    stdout linux/amd64
    cp stdout tool.txt
    
    go tool dist list -v
    stdout linux/amd64
    cp stdout tool-v.txt
    
    go tool dist list -broken
    stdout $GOOS/$GOARCH
    cp stdout tool-broken.txt
    
    go tool dist list -json
    stdout '"GOOS": "linux",\n\s*"GOARCH": "amd64",\n'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:52:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. src/internal/testenv/testenv_test.go

    	}
    }
    
    func TestHasGoBuild(t *testing.T) {
    	if !testenv.HasGoBuild() {
    		switch runtime.GOOS {
    		case "js", "wasip1":
    			// No exec syscall, so these shouldn't be able to 'go build'.
    			t.Logf("HasGoBuild is false on %s", runtime.GOOS)
    			return
    		}
    
    		b := testenv.Builder()
    		if b == "" {
    			// We shouldn't make assumptions about what kind of sandbox or build
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_gopath_order.txt

    mkdir $WORK/p1/src/foo $WORK/p2/src/baz
    mkdir $WORK/p2/pkg/${GOOS}_${GOARCH} $WORK/p1/src/bar
    cp foo.go $WORK/p1/src/foo/foo.go
    cp baz.go $WORK/p2/src/baz/baz.go
    cp foo.a $WORK/p2/pkg/${GOOS}_${GOARCH}/foo.a
    cp bar.go $WORK/p1/src/bar/bar.go
    
    go install -x bar
    
    # add in baz.a to the mix
    mkdir $WORK/p1/pkg/${GOOS}_${GOARCH}
    cp baz.a $WORK/p1/pkg/${GOOS}_${GOARCH}/baz.a
    env GOPATH=$WORK/p1${:}$WORK/p2
    go install -x bar
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 855 bytes
    - Viewed (0)
  9. src/cmd/link/dwarf_test.go

    	testenv.MustHaveGoBuild(t)
    
    	if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) {
    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    
    	t.Parallel()
    
    	for _, prog := range []string{"testprog", "testprogcgo"} {
    		prog := prog
    		expectDWARF := expectDWARF
    		if runtime.GOOS == "aix" && prog == "testprogcgo" {
    			extld := os.Getenv("CC")
    			if extld == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/cshared_test.go

    	}
    	if !lastSpace {
    		cc = append(cc, s[start:])
    	}
    
    	switch GOOS {
    	case "darwin", "ios":
    		// For Darwin/ARM.
    		// TODO(crawshaw): can we do better?
    		cc = append(cc, []string{"-framework", "CoreFoundation", "-framework", "Foundation"}...)
    	case "android":
    		cc = append(cc, "-pie")
    	}
    	libgodir := GOOS + "_" + GOARCH
    	switch GOOS {
    	case "darwin", "ios":
    		if GOARCH == "arm64" {
    			libgodir += "_shared"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top