- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SplitSeq (0.03 sec)
-
cmd/metacache-marker.go
return } start := strings.LastIndex(s, "[") o.Marker = s[:start] end := strings.LastIndex(s, "]") tag := strings.Trim(s[start:end], "[]") tags := strings.SplitSeq(tag, ",") for tag := range tags { kv := strings.Split(tag, ":") if len(kv) < 2 { continue } switch kv[0] { case "minio_cache": if kv[1] != markerTagVersion { continue }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.5K bytes - Viewed (0) -
cmd/leak-detect_test.go
// get runtime stack buffer. buf := debug.Stack() // runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" . for g := range strings.SplitSeq(string(buf), "\n\n") { // Again split on a new line, the first line of the second half contains the info about the go routine. sl := strings.SplitN(g, "\n", 2) if len(sl) != 2 { continue }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 5.2K bytes - Viewed (0) -
internal/event/config.go
"github.com/minio/minio-go/v7/pkg/set" ) // ValidateFilterRuleValue - checks if given value is filter rule value or not. func ValidateFilterRuleValue(value string) error { for segment := range strings.SplitSeq(value, "/") { if segment == "." || segment == ".." { return &ErrInvalidFilterValue{value} } } if len(value) <= 1024 && utf8.ValidString(value) && !strings.Contains(value, `\`) { return nil }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.4K bytes - Viewed (0) -
internal/logger/console.go
// message itself contains some colored text, we needed // to use some ANSI control escapes to cursor color state // and freely move in the screen. for line := range strings.SplitSeq(errMsg, "\n") { if len(line) == 0 { // No more text to print, just quit. break } // Save the attributes of the current cursor helps // us save the text color of the passed error messageRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 7.2K bytes - Viewed (0)