- Sort Score
- Num 10 results
- Language All
Results 401 - 410 of 552 for Appendf (0.04 seconds)
-
tests/joins_test.go
*GetUser("slice-joins-3", Config{Company: true, Manager: true, Account: true}), } DB.Create(&users) var userIDs []uint for _, user := range users { userIDs = append(userIDs, user.ID) } var users2 []User if err := DB.Joins("Company").Joins("Manager").Joins("Account").Find(&users2, "users.id IN ?", userIDs).Error; err != nil { t.Fatalf("Failed to load with joins, got error: %v", err)Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 15K bytes - Click Count (0) -
fastapi/dependencies/models.py
# This doesn't use a set to preserve order, just in case for scope in self.own_oauth_scopes or []: if scope not in scopes: scopes.append(scope) return scopes @cached_property def cache_key(self) -> DependencyCacheKey: scopes_for_cache = ( tuple(sorted(set(self.oauth_scopes or []))) if self._uses_scopes else ()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 7.1K bytes - Click Count (0) -
cmd/xl-storage-format-utils.go
// versions. n := 0 for _, fi := range fivs.Versions { // filter our tier object delete marker if fi.TierFreeVersion() { if !inclFreeVersions { fivs.FreeVersions = append(fivs.FreeVersions, fi) } } else { if !inclFreeVersions { fivs.Versions[n] = fi } n++ } } if !inclFreeVersions { fivs.Versions = fivs.Versions[:n] } // Update numversionsCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 08 15:29:58 GMT 2024 - 5.5K bytes - Click Count (0) -
internal/config/certs.go
var x509Cert *x509.Certificate if x509Cert, err = x509.ParseCertificate(pemBlock.Bytes); err != nil { return nil, ErrTLSUnexpectedData(nil).Msgf("Failed to parse `%s`: %s", certFile, err.Error()) } x509Certs = append(x509Certs, x509Cert) } if len(x509Certs) == 0 { return nil, ErrTLSUnexpectedData(nil).Msgf("Empty public certificate file %s", certFile) } return x509Certs, nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Aug 14 17:11:51 GMT 2024 - 3.8K bytes - Click Count (0) -
docs/debugging/hash-set/main.go
b = bytes.ReplaceAll(b, []byte("\r"), []byte{}) sc := bufio.NewScanner(bytes.NewBuffer(b)) for sc.Scan() { object = strings.TrimSpace(sc.Text()) 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 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 3.7K bytes - Click Count (0) -
impl/maven-core/src/site/apt/index.apt
* known limitations are notably that: 1. plugin goal execution in a child is usually simply appended (at end): you can't try to insert in the middle of pre-existing inherited executions, 2. append happens at plugin level first, then goal level, independently from phases. This means for example that adding pluginA:goal2 to pre-existing (pluginA:goal1, pluginB:goal) will lead to (pluginA:goal1, pluginA:goal2, pluginB:goal)Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.3K bytes - Click Count (0) -
src/archive/zip/zip_test.go
if bytes.Count(p, []byte{lastByte}) == len(p) { rp.n += int64(len(p)) return len(p), nil } } } for _, b := range p { if rp == nil || rp.b != b { r.buf = append(r.buf, repeatedByte{r.Size(), b, 1}) rp = &r.buf[len(r.buf)-1] } else { rp.n++ } } return len(p), nil } func memset(a []byte, b byte) { if len(a) == 0 { return }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu May 23 01:00:11 GMT 2024 - 19.6K bytes - Click Count (0) -
internal/logger/logrotate.go
Compress bool } // Writer is a concurrency-safe writer with file rotation. type Writer struct { // opts are the configuration options for this Writer opts Options // f is the currently open file used for appends. // Writes to f are only synchronized once Close() is called, // or when files are being rotated. f *os.File pw *xioutil.PipeWriter pr *xioutil.PipeReader }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 5.8K bytes - Click Count (0) -
tests/scanner_valuer_test.go
func (data *EncryptedData) Scan(value interface{}) error { if b, ok := value.([]byte); ok { if len(b) < 3 || b[0] != '*' || b[1] != '*' || b[2] != '*' { return errors.New("Too short") } *data = append((*data)[0:], b[3:]...) return nil } else if s, ok := value.(string); ok { *data = []byte(s[3:]) return nil } return errors.New("Bytes expected") }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Jun 07 07:02:07 GMT 2023 - 10.6K bytes - Click Count (0) -
internal/kms/config.go
continue } if !ellipses.HasEllipses(endpoint) { endpoints = append(endpoints, endpoint) continue } pattern, err := ellipses.FindEllipsesPatterns(endpoint) if err != nil { return nil, fmt.Errorf("kms: invalid endpoint '%s': %v", endpoint, err) } for _, p := range pattern.Expand() { endpoints = append(endpoints, strings.Join(p, "")) } } return endpoints, nil
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15K bytes - Click Count (0)