Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 447 for writeTime (0.16 sec)

  1. src/index/suffixarray/gen.go

    		}
    		if strings.HasSuffix(name, "_8_32") {
    			// x_8_32 -> x_8_64 done above
    			fn = fix8_32.Replace(stripByteOnly(fn))
    			buf.WriteString(fn)
    			buf.WriteString(fix32.Replace(fn))
    		}
    	}
    
    	if err := os.WriteFile("sais2.go", buf.Bytes(), 0666); err != nil {
    		log.Fatal(err)
    	}
    }
    
    var fix32 = strings.NewReplacer(
    	"32", "64",
    	"int32", "int64",
    )
    
    var fix8_32 = strings.NewReplacer(
    	"_8_32", "_32",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/config_test.go

    	require.NoError(t, apiserverapiv1alpha1.AddToScheme(scheme))
    	require.NoError(t, apiserverapiv1.AddToScheme(scheme))
    
    	for testName, testCase := range testCases {
    		if err = os.WriteFile(configFileName, []byte(testCase.ConfigBody), 0644); err != nil {
    			t.Fatalf("unexpected err writing temp file: %v", err)
    		}
    		config, err := ReadAdmissionConfiguration(testCase.PluginNames, configFileName, scheme)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. src/internal/goexperiment/mkconsts.go

    //go:build %s%s
    
    package goexperiment
    
    const %s = %v
    const %sInt = %s
    `, pick(val, "!", ""), buildTag, f, val, f, pick(val, "0", "1"))
    			if err := os.WriteFile(name, []byte(data), 0666); err != nil {
    				log.Fatalf("writing %s: %v", name, err)
    			}
    		}
    	}
    }
    
    func pick(v bool, f, t string) string {
    	if v {
    		return t
    	}
    	return f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. test/fixedbugs/bug369.go

    	stdlibimportcfg, err := os.ReadFile(os.Getenv("STDLIB_IMPORTCFG"))
    	check(err)
    	importcfg := string(stdlibimportcfg) + "\npackagefile test/slow=" + tmp("test/slow.o") + "\npackagefile test/fast=" + tmp("test/fast.o")
    	os.WriteFile(tmp("importcfg"), []byte(importcfg), 0644)
    
    	run("go", "tool", "compile", "-importcfg="+tmp("importcfg"), "-p=test/slow", "-N", "-o", tmp("test/slow.o"), "pkg.go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/tasks/InstallExecutable.java

                + "\n" + toolChainPath
                + "\nCALL \"%~dp0lib\\" + executable.getName() + "\" %*"
                + "\nEXIT /B %ERRORLEVEL%"
                + "\nENDLOCAL"
                + "\n";
            GFileUtils.writeFile(runScriptText, runScript);
        }
    
        private void installUnix(File executable, File runScript) {
            String runScriptText =
                  "#!/bin/sh"
                + "\nAPP_BASE_NAME=`dirname \"$0\"`"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/cgroup_manager_linux.go

    		if err := os.WriteFile(filepath.Join(cgroupPath, "cpu.cfs_quota_us"), []byte(cpuQuotaStr), 0700); err != nil {
    			return fmt.Errorf("failed to write %v to %v: %v", cpuQuotaStr, cgroupPath, err)
    		}
    	}
    	if resourceConfig.CPUPeriod != nil {
    		cpuPeriodStr = strconv.FormatUint(*resourceConfig.CPUPeriod, 10)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest_shared_test.go

    func readFile(path string) (string, error) {
    	b, err := os.ReadFile(path)
    	return string(b), err
    }
    
    // writeFile writes a file and returns an error if operation is unsuccessful.
    func writeFile(path string, data []byte) error {
    	return os.WriteFile(path, data, 0o644)
    }
    
    // inFileAbsolutePath returns the absolute path for an input file like "gateways".
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 20 22:39:28 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. cmd/format-erasure_test.go

    	b, err := json.Marshal(m)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil {
    		t.Fatal(err)
    	}
    
    	if err = os.WriteFile(pathJoin(rootPath, minioMetaBucket, formatConfigFile), b, os.FileMode(0o644)); err != nil {
    		t.Fatal(err)
    	}
    
    	formatData, _, err := formatErasureMigrate(rootPath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. security/tools/generate_cert/main.go

    		}
    	default:
    		log.Fatalf("Unsupported mode %v", *mode)
    	}
    }
    
    func saveCreds(certPem []byte, privPem []byte) {
    	err := os.WriteFile(*outCert, certPem, 0o644)
    	if err != nil {
    		log.Fatalf("Could not write output certificate: %s.", err)
    	}
    
    	err = os.WriteFile(*outPriv, privPem, 0o600)
    	if err != nil {
    		log.Fatalf("Could not write output private key: %s.", err)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 28 16:21:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/elf_test.go

    	testenv.MustHaveGoBuild(t)
    	dir := t.TempDir()
    
    	const prog = `
    package main
    
    import "net"
    
    func main() {
    	net.Dial("", "")
    }
    `
    	src := filepath.Join(dir, "issue33358.go")
    	if err := os.WriteFile(src, []byte(prog), 0666); err != nil {
    		t.Fatal(err)
    	}
    
    	binFile := filepath.Join(dir, "issue33358")
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", binFile, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top