- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 47 for splitSeq (0.05 seconds)
-
internal/config/identity/openid/openid.go
return c, errors.New("please specify config_url to enable fetching claims from UserInfo endpoint") } if scopeList := getCfgVal(Scopes); scopeList != "" { var scopes []string for scope := range strings.SplitSeq(scopeList, ",") { scope = strings.TrimSpace(scope) if scope == "" { return c, config.Errorf("empty scope value is not allowed '%s', please refer to our documentation", scopeList) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 17.3K bytes - Click Count (0) -
cmd/object-api-options.go
} func parseObjectAttributes(h http.Header) (attributes map[string]struct{}) { attributes = make(map[string]struct{}) for _, headerVal := range h.Values(xhttp.AmzObjectAttributes) { for v := range strings.SplitSeq(strings.TrimSpace(headerVal), ",") { if v != "" { attributes[v] = struct{}{} } } } return attributes }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.3K bytes - Click Count (0) -
internal/kms/config.go
} return true, nil } } func expandEndpoints(s string) ([]string, error) { var endpoints []string for endpoint := range strings.SplitSeq(s, ",") { endpoint = strings.TrimSpace(endpoint) if endpoint == "" { continue } if !ellipses.HasEllipses(endpoint) { endpoints = append(endpoints, endpoint) continue }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15K bytes - Click Count (0) -
cmd/handler-utils.go
func trimAwsChunkedContentEncoding(contentEnc string) (trimmedContentEnc string) { if contentEnc == "" { return contentEnc } var newEncs []string for enc := range strings.SplitSeq(contentEnc, ",") { if enc != streamingContentEncoding { newEncs = append(newEncs, enc) } } return strings.Join(newEncs, ",") } func collectInternodeStats(f http.HandlerFunc) http.HandlerFunc {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 16.4K bytes - Click Count (1) -
src/bytes/example_test.go
fmt.Printf("%q\n", line) } // Output: // "Hello\n" // "World\n" // "Go Programming\n" } func ExampleSplitSeq() { s := []byte("a,b,c,d") for part := range bytes.SplitSeq(s, []byte(",")) { fmt.Printf("%q\n", part) } // Output: // "a" // "b" // "c" // "d" } func ExampleSplitAfterSeq() { s := []byte("a,b,c,d")
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon May 12 16:07:54 GMT 2025 - 16.5K bytes - Click Count (0) -
cmd/bucket-replication-utils.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.1K bytes - Click Count (0) -
cmd/common-main.go
} globalRootDiskThreshold = size } domains := env.Get(config.EnvDomain, "") if len(domains) != 0 { for domainName := range strings.SplitSeq(domains, config.ValueSeparator) { if _, ok := dns2.IsDomainName(domainName); !ok { logger.Fatal(config.ErrInvalidDomainValue(nil).Msgf("Unknown value `%s`", domainName),
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3) -
src/bytes/bytes_test.go
t.Errorf(`Split(%q, %q, %d) = %v; want %v`, tt.s, tt.sep, tt.n, result, tt.a) continue } if tt.n < 0 { b := sliceOfString(slices.Collect(SplitSeq([]byte(tt.s), []byte(tt.sep)))) if !slices.Equal(b, tt.a) { t.Errorf(`collect(SplitSeq(%q, %q)) = %v; want %v`, tt.s, tt.sep, b, tt.a) } } if tt.n == 0 || len(a) == 0 { continue }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 23 23:54:14 GMT 2025 - 62.9K bytes - Click Count (0) -
internal/config/notify/parse.go
} kafkaBrokers := env.Get(brokersEnv, kv.Get(target.KafkaBrokers)) if len(kafkaBrokers) == 0 { return nil, config.Errorf("kafka 'brokers' cannot be empty") } for s := range strings.SplitSeq(kafkaBrokers, config.ValueSeparator) { var host *xnet.Host host, err = xnet.ParseHost(s) if err != nil { break } brokers = append(brokers, *host) } if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 47.5K bytes - Click Count (0) -
cmd/test-utils_test.go
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, BasicConstraintsValid: true, } hosts := strings.SplitSeq(host, ",") for h := range hosts { if ip := net.ParseIP(h); ip != nil { template.IPAddresses = append(template.IPAddresses, ip) } else { template.DNSNames = append(template.DNSNames, h) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 77K bytes - Click Count (0)