- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 138 for Liles (0.35 sec)
-
src/archive/zip/example_test.go
// Create a new zip archive. w := zip.NewWriter(buf) // Add some files to the archive. var files = []struct { Name, Body string }{ {"readme.txt", "This archive contains some text files."}, {"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"}, {"todo.txt", "Get animal handling licence.\nWrite more examples."}, } for _, file := range files { f, err := w.Create(file.Name) if err != nil { log.Fatal(err)
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Jan 27 00:22:03 GMT 2016 - 2K bytes - Viewed (0) -
cni/test/install_cni.go
} } } return fmt.Errorf("no files, or unrecognized op") } // checkTempFilesCleaned verifies that all temporary files have been cleaned up func checkTempFilesCleaned(tempCNIConfDir string, t *testing.T) { t.Helper() files, err := os.ReadDir(tempCNIConfDir) if err != nil { t.Fatalf("Failed to list files, err: %v", err) } for _, f := range files { if strings.Contains(f.Name(), ".tmp") {
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 12.5K bytes - Viewed (0) -
internal/disk/disk.go
// Total - total size of the volume / disk // Free - free size of the volume / disk // Files - total inodes available // Ffree - free inodes available // FSType - file system type // Major - major dev id // Minor - minor dev id // Devname - device name type Info struct { Total uint64 Free uint64 Used uint64 Files uint64 Ffree uint64 FSType string Major uint32 Minor uint32
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Feb 26 19:34:50 GMT 2024 - 1.7K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
set := sipHashMod(prefix+object, setCount, id) distrib[set] = append(distrib[set], prefix+object) } for set, files := range distrib { fmt.Println("Set:", set+1, "Objects:", len(files)) if !verbose { continue } for _, s := range files { fmt.Printf("\t%s\n", s) } } os.Exit(0) } if object == "" { log.Fatalln("object name is mandatory") }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 3.7K bytes - Viewed (0) -
internal/disk/stat_solaris.go
return Info{}, err } reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail) info = Info{ Total: uint64(s.Frsize) * (uint64(s.Blocks) - reservedBlocks), Free: uint64(s.Frsize) * uint64(s.Bavail), Files: uint64(s.Files), Ffree: uint64(s.Ffree), FSType: getFSType(s.Fstr[:]), } if info.Free > info.Total {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Feb 26 19:34:50 GMT 2024 - 1.8K bytes - Viewed (0) -
istioctl/pkg/validate/validate_test.go
wantError: false, }, { name: "validate combination of yaml files and directories with valid files and invalid files", args: []string{"--filename", validFilenameYAML, "--filename", tempDirYAML, "--filename", validTempDirYAML}, wantError: true, // Since the directory has invalid files }, { name: "validate all json files in a directory", args: []string{"--filename", tempDirJSON},
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Jul 25 08:08:36 GMT 2023 - 21.5K bytes - Viewed (0) -
cmd/storage-datatypes.go
} return fi } // ReadMultipleReq contains information of multiple files to read from disk. type ReadMultipleReq struct { Bucket string // Bucket. Can be empty if multiple buckets. Prefix string // Shared prefix of all files. Can be empty. Will be joined to filename without modification. Files []string // Individual files to read. MaxSize int64 // Return error if size is exceed.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Apr 16 15:41:27 GMT 2024 - 14.8K bytes - Viewed (0) -
internal/store/queuestore.go
if err := os.MkdirAll(store.directory, os.FileMode(0o770)); err != nil { return err } files, err := store.list() if err != nil { return err } // Truncate entries. if uint64(len(files)) > store.entryLimit { files = files[:store.entryLimit] } for _, file := range files { if file.IsDir() { continue } key := strings.TrimSuffix(file.Name(), store.fileExt)
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Mar 25 16:44:20 GMT 2024 - 7.1K bytes - Viewed (0) -
cni/pkg/install/cniconfig.go
func getDefaultCNINetwork(confDir string) (string, error) { files, err := libcni.ConfFiles(confDir, []string{".conf", ".conflist"}) switch { case err != nil: return "", err case len(files) == 0: return "", fmt.Errorf("no networks found in %s", confDir) } sort.Strings(files) for _, confFile := range files { var confList *libcni.NetworkConfigList
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.4K bytes - Viewed (0) -
src/archive/tar/fuzz_test.go
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Jan 13 18:06:33 GMT 2022 - 2.2K bytes - Viewed (0)