Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for Run (0.13 sec)

  1. src/clean.bash

    #!/usr/bin/env bash
    # Copyright 2009 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.
    
    set -e
    
    if [ ! -f run.bash ]; then
    	echo 'clean.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    export GOROOT="$(cd .. && pwd)"
    
    gobin="${GOROOT}"/bin
    if ! "$gobin"/go help >/dev/null 2>&1; then
    	echo 'cannot find go command; nothing to clean' >&2
    	exit 1
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 26 21:54:09 GMT 2020
    - 518 bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    			t.Fatalf("Write() = %v, want %v", err, ErrWriteTooLong)
    		}
    	})
    
    	t.Run("NegativeSize", func(t *testing.T) {
    		tw := NewWriter(new(bytes.Buffer))
    		hdr := &Header{Name: "small.txt", Size: -1}
    		if err := tw.WriteHeader(hdr); err == nil {
    			t.Fatalf("WriteHeader() = nil, want non-nil error")
    		}
    	})
    
    	t.Run("BeforeHeader", func(t *testing.T) {
    		tw := NewWriter(new(bytes.Buffer))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  3. src/cmd/asm/doc.go

    	-v
    		Print debug output.
    
    Input language:
    
    The assembler uses mostly the same syntax for all architectures,
    the main variation having to do with addressing modes. Input is
    run through a simplified C preprocessor that implements #include,
    #define, #ifdef/endif, but not #if or ##.
    
    For more information, see https://golang.org/doc/asm.
    */
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 20:46:45 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/bytes/compare_test.go

    		if Compare(b1, b2[offset:]) != 0 {
    			b.Fatal("b1 != b2")
    		}
    	}
    	b.SetBytes(int64(len(b1)))
    }
    
    func BenchmarkCompareBytesBigUnaligned(b *testing.B) {
    	for i := 1; i < 8; i++ {
    		b.Run(fmt.Sprintf("offset=%d", i), func(b *testing.B) {
    			benchmarkCompareBytesBigUnaligned(b, i)
    		})
    	}
    }
    
    func benchmarkCompareBytesBigBothUnaligned(b *testing.B, offset int) {
    	b.StopTimer()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  5. src/archive/tar/tar_test.go

    			[]byte("foo"),
    		}, {
    			&Header{Name: "world", Mode: 0640, Size: int64(5), Xattrs: map[string]string{"foo": "bar"}},
    			[]byte("hello"),
    		}},
    	}}
    
    	b.Run("Writer", func(b *testing.B) {
    		for _, v := range vectors {
    			b.Run(v.label, func(b *testing.B) {
    				b.ReportAllocs()
    				for i := 0; i < b.N; i++ {
    					// Writing to io.Discard because we want to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. misc/go_android_exec/main.go

    	// go test will hang forever.
    	//
    	// Avoid that by wrapping stderr, breaking the short circuit and
    	// forcing cmd.Run to use another pipe and goroutine to pass
    	// along stderr from adb.
    	cmd.Stderr = struct{ io.Writer }{os.Stderr}
    	err := cmd.Run()
    
    	// Before we process err, flush any further output and get the exit code.
    	exitCode, err2 := filter.Finish()
    
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg os/exec, func LookPath(string) (string, error)
    pkg os/exec, method (*Cmd) CombinedOutput() ([]uint8, error)
    pkg os/exec, method (*Cmd) Output() ([]uint8, error)
    pkg os/exec, method (*Cmd) Run() error
    pkg os/exec, method (*Cmd) Start() error
    pkg os/exec, method (*Cmd) StderrPipe() (io.ReadCloser, error)
    pkg os/exec, method (*Cmd) StdinPipe() (io.WriteCloser, error)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  8. src/cmd/cgo/internal/test/cgo_thread_lock.go

    }
    
    func init() {
    	testThreadLockFunc = testThreadLock
    }
    
    func testThreadLock(t *testing.T) {
    	stop := make(chan int)
    	go func() {
    		// We need the G continue running,
    		// so the M has a chance to run this G.
    		for {
    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  9. misc/wasm/wasm_exec_node.js

    		if (code === 0 && !go.exited) {
    			// deadlock, make Go print error and stack traces
    			go._pendingEvent = { id: 0 };
    			go._resume();
    		}
    	});
    	return go.run(result.instance);
    }).catch((err) => {
    	console.error(err);
    	process.exit(1);
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 30 18:49:42 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  10. api/go1.22.txt

    pkg syscall (linux-arm), type SysProcAttr struct, PidFD *int #51246
    pkg syscall (linux-arm-cgo), type SysProcAttr struct, PidFD *int #51246
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 24 20:54:27 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top