- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,107 for len (0.03 sec)
-
internal/config/config.go
// Empty - return if kv is empty func (kvs KVS) Empty() bool { return len(kvs) == 0 } // Clone - returns a copy of the KVS func (kvs KVS) Clone() KVS { return append(make(KVS, 0, len(kvs)), kvs...) } // GetWithDefault - returns default value if key not set func (kvs KVS) GetWithDefault(key string, defaultKVS KVS) string { v := kvs.Get(key) if len(v) == 0 { return defaultKVS.Get(key) } return v }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 18:23:41 UTC 2024 - 37.7K bytes - Viewed (0) -
internal/handlers/proxy.go
// we simply ignore the values and return empty. This is in line // with the approach we took for returning first ip from multiple // params. if match := forRegex.FindStringSubmatch(proto); len(match) > 1 { if match = protoRegex.FindStringSubmatch(match[2]); len(match) > 1 { scheme = strings.ToLower(match[2]) } } } return scheme } // GetSourceIPFromHeaders retrieves the IP from the X-Forwarded-For, X-Real-IP
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Dec 22 00:56:55 UTC 2023 - 5.1K bytes - Viewed (0) -
cmd/listen-notification-handlers.go
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL) return } } values := r.Form var prefix string if len(values[peerRESTListenPrefix]) > 1 { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrFilterNamePrefix), r.URL) return } if len(values[peerRESTListenPrefix]) == 1 { if err := event.ValidateFilterRuleValue(values[peerRESTListenPrefix][0]); err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6K bytes - Viewed (0) -
cmd/server-startup-msg.go
// banner. Returns a new list of API endpoints. func stripStandardPorts(apiEndpoints []string, host string) (newAPIEndpoints []string) { if len(apiEndpoints) == 1 { return apiEndpoints } newAPIEndpoints = make([]string, len(apiEndpoints)) // Check all API endpoints for standard ports and strip them. for i, apiEndpoint := range apiEndpoints { _, err := xnet.ParseHTTPURL(apiEndpoint) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Aug 23 14:11:35 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/callbacks_test.go
} else { callMethod(v, "Register", c.name, c.h) } if e, ok := v.(error); !ok || e != nil { err = e } } if len(data.err) > 0 && err == nil { t.Errorf("callbacks tests #%v should got error %v, but not", idx+1, data.err) } else if len(data.err) == 0 && err != nil { t.Errorf("callbacks tests #%v should not got error, but got %v", idx+1, err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 26 03:33:36 UTC 2024 - 7.2K bytes - Viewed (0) -
cmd/bitrot-whole.go
if b.buf == nil { b.buf = make([]byte, b.tillOffset-offset) if _, err := b.disk.ReadFile(context.TODO(), b.volume, b.filePath, offset, b.buf, b.verifier); err != nil { return 0, err } } if len(b.buf) < len(buf) { return 0, errLessData } n = copy(buf, b.buf) b.buf = b.buf[n:] return n, nil } // Returns whole-file bitrot reader.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 2.7K bytes - Viewed (0) -
misc/cgo/gmp/pi.go
fmt.Printf("%c", d+'0') if i++; i%50 == 0 { fmt.Printf("\n") if i >= 1000 { break } } } fmt.Printf("\n%d calls; bit sizes: %d %d %d\n", runtime.NumCgoCall(), numer.Len(), accum.Len(), denom.Len())
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 22 03:57:31 UTC 2020 - 19.7K bytes - Viewed (0) -
internal/config/identity/openid/jwks_test.go
t.Fatal("Unmarshal: ", err) } else if len(jk.Keys) != 3 { t.Fatalf("Expected 3 keys, got %d", len(jk.Keys)) } var kids []string for ii, jks := range jk.Keys { _, err := jks.DecodePublicKey() if err != nil { t.Fatalf("Failed to decode key %d: %v", ii, err) } kids = append(kids, jks.Kid) } if len(kids) != 3 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java
protected int readSetupWireFormat ( byte[] buffer, int bufferIndex, int len ) { return 0; } @Override protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) { return 0; } @Override protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) { return 0; } @Override
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.5K bytes - Viewed (0)