Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for tempDir (0.33 sec)

  1. src/archive/zip/reader_test.go

    		0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x39, 0x00,
    		0x00, 0x00, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00,
    	}
    
    	// Read in the archive with the OpenReader interface
    	name := filepath.Join(t.TempDir(), "test.zip")
    	err := os.WriteFile(name, data, 0644)
    	if err != nil {
    		t.Fatalf("Unable to write out the bugos zip entry")
    	}
    	r, err := OpenReader(name)
    	if r != nil {
    		defer r.Close()
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. api/go1.19.txt

    pkg io/ioutil, func NopCloser //deprecated #42026
    pkg io/ioutil, func ReadAll //deprecated #42026
    pkg io/ioutil, func ReadDir //deprecated #42026
    pkg io/ioutil, func ReadFile //deprecated #42026
    pkg io/ioutil, func TempDir //deprecated #42026
    pkg io/ioutil, func TempFile //deprecated #42026
    pkg io/ioutil, func WriteFile //deprecated #42026
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 17.9K bytes
    - Viewed (1)
  3. src/cmd/addr2line/addr2line_test.go

    func TestAddr2Line(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	tmpDir, err := os.MkdirTemp("", "TestAddr2Line")
    	if err != nil {
    		t.Fatal("TempDir failed: ", err)
    	}
    	defer os.RemoveAll(tmpDir)
    
    	// Build copy of test binary with debug symbols,
    	// since the one running now may not have them.
    	exepath := filepath.Join(tmpDir, "testaddr2line_test.exe")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec_node.js

    globalThis.performance ??= require("performance");
    
    globalThis.crypto ??= require("crypto");
    
    require("./wasm_exec");
    
    const go = new Go();
    go.argv = process.argv.slice(2);
    go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
    go.exit = process.exit;
    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    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)
  5. api/go1.18.txt

    pkg testing, method (*F) Skip(...interface{})
    pkg testing, method (*F) SkipNow()
    pkg testing, method (*F) Skipf(string, ...interface{})
    pkg testing, method (*F) Skipped() bool
    pkg testing, method (*F) TempDir() string
    pkg testing, type F struct
    pkg testing, type InternalFuzzTarget struct
    pkg testing, type InternalFuzzTarget struct, Fn func(*F)
    pkg testing, type InternalFuzzTarget struct, Name string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  6. api/go1.15.txt

    pkg sync, method (*Map) LoadAndDelete(interface{}) (interface{}, bool)
    pkg testing, method (*B) TempDir() string
    pkg testing, method (*T) Deadline() (time.Time, bool)
    pkg testing, method (*T) TempDir() string
    pkg testing, type TB interface, TempDir() string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Jul 17 02:15:01 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  7. misc/go_android_exec/main.go

    func runMain() (int, error) {
    	// Concurrent use of adb is flaky, so serialize adb commands.
    	// See https://github.com/golang/go/issues/23795 or
    	// https://issuetracker.google.com/issues/73230216.
    	lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock")
    	lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666)
    	if err != nil {
    		return 0, err
    	}
    	defer lock.Close()
    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)
  8. misc/wasm/go_wasip1_wasm_exec

    		;;
    	"wasmer")
    		exec wasmer run --dir=/ --env PWD="$PWD" --env PATH="$PATH" ${GOWASIRUNTIMEARGS:-} "$1" -- "${@:2}"
    		;;
    	"wazero")
    		exec wazero run -mount /:/ -env-inherit -cachedir "${TMPDIR:-/tmp}"/wazero ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
    		;;
    	"wasmtime" | "")
    		exec wasmtime run --dir=/ --env PWD="$PWD" --env PATH="$PATH" -W max-wasm-stack=1048576 ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
    		;;
    	*)
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 17:09:10 GMT 2024
    - 797 bytes
    - Viewed (0)
  9. src/archive/tar/fuzz_test.go

    import (
    	"bytes"
    	"io"
    	"testing"
    )
    
    func FuzzReader(f *testing.F) {
    	b := bytes.NewBuffer(nil)
    	w := NewWriter(b)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg io/ioutil, func ReadAll(io.Reader) ([]uint8, error)
    pkg io/ioutil, func ReadDir(string) ([]os.FileInfo, error)
    pkg io/ioutil, func ReadFile(string) ([]uint8, error)
    pkg io/ioutil, func TempDir(string, string) (string, error)
    pkg io/ioutil, func TempFile(string, string) (*os.File, error)
    pkg io/ioutil, func WriteFile(string, []uint8, os.FileMode) error
    pkg io/ioutil, var Discard io.Writer
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top