- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for toSlash (0.04 seconds)
-
lib/time/mkzip.go
return nil } data, err := os.ReadFile(path) if err != nil { log.Fatal(err) } if strings.HasSuffix(path, ".zip") { log.Fatalf("unexpected file during walk: %s", path) } name := filepath.ToSlash(path) w, err := zw.CreateRaw(&zip.FileHeader{ Name: name, Method: zip.Store, CompressedSize64: uint64(len(data)), UncompressedSize64: uint64(len(data)),
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Mar 04 17:32:07 GMT 2024 - 2.1K bytes - Click Count (0) -
utils/utils.go
} func sourceDir(file string) string { dir := filepath.Dir(file) dir = filepath.Dir(dir) s := filepath.Dir(dir) if filepath.Base(s) != "gorm.io" { s = dir } return filepath.ToSlash(s) + "/" } // CallerFrame retrieves the first relevant stack frame outside of GORM's internal implementation files. // It skips: // - GORM's core source files (identified by gormSourceDir prefix)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Oct 30 10:56:26 GMT 2025 - 4.5K bytes - Click Count (0)