- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 79 for hasPrefix (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/migrate_test.go
Int8 Smallint } tracer := Tracer{ Logger: DB.Config.Logger, Test: func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) { sql, _ := fc() if strings.HasPrefix(sql, "ALTER TABLE \"migrate_ints\" ALTER COLUMN \"int8\" TYPE smallint") { t.Fatalf("shouldn't execute ALTER COLUMN TYPE if such type is already existed in DB schema: sql: %s", sql) } }, }Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:49:01 GMT 2026 - 66.3K bytes - Click Count (0) -
src/bytes/bytes_test.go
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0) -
cmd/s3-zip-handlers.go
for _, file := range files { objName := zipObjInfo.Name + archiveSeparator + file.Name if objName <= startAfter || objName <= token { continue } if strings.HasPrefix(objName, prefix) { if count == maxKeys { isTruncated = true break } if delimiter != "" { i := strings.Index(objName[len(prefix):], delimiter) if i >= 0 {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.8K bytes - Click Count (0) -
internal/etag/etag.go
// ETags. func parse(s string, strict bool) (ETag, error) { // An S3 ETag may be a double-quoted string. // Therefore, we remove double quotes at the // start and end, if any. if strings.HasPrefix(s, `"`) && strings.HasSuffix(s, `"`) { s = s[1 : len(s)-1] } // An S3 ETag may be a multipart ETag that // contains a '-' followed by a number. // If the ETag does not a '-' is either
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 16 14:27:42 GMT 2025 - 13.2K bytes - Click Count (0) -
tests/generics_test.go
}).Where("name in ?", names).Find(ctx) if err == nil { t.Fatalf("Preload should failed, but got nil") } if DB.Dialector.Name() == "mysql" { // mysql 5.7 doesn't support row_number() if strings.HasPrefix(DB.Dialector.(*mysql.Dialector).ServerVersion, "5.7") { return } } results, err = db.Preload("Pets", func(db gorm.PreloadBuilder) error { db.LimitPerRecord(5) return nil
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 30 08:11:14 GMT 2025 - 34.9K bytes - Click Count (0) -
cmd/endpoint_test.go
var URLs []*url.URL var localFlags []bool for _, arg := range args { u, _ := url.Parse(arg) URLs = append(URLs, u) localFlags = append(localFlags, strings.HasPrefix(arg, prefix)) } return URLs, localFlags } case1Endpoint1 := "http://" + nonLoopBackIP + "/d1" case1Endpoint2 := "http://" + nonLoopBackIP + "/d2" args := []string{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 18.9K bytes - Click Count (0) -
cmd/batch-rotate.go
} // Validate validates input key rotation encryption options. func (e BatchJobKeyRotateEncryption) Validate() error { if e.Type != sses3 && e.Type != ssekms { return errInvalidArgument } spaces := strings.HasPrefix(e.Key, " ") || strings.HasSuffix(e.Key, " ") if e.Type == ssekms && spaces { return crypto.ErrInvalidEncryptionKeyID } if e.Type == ssekms && GlobalKMS != nil { ctx := kms.Context{} if e.Context != "" {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 14.7K bytes - Click Count (0) -
cmd/metacache-set.go
if !o.IncludeDirectories && (entry.isDir() || (!o.Versioned && entry.isObjectDir() && entry.isLatestDeletemarker())) { return true } if o.Marker != "" && entry.name < o.Marker { return true } if !strings.HasPrefix(entry.name, o.Prefix) { return true } if o.Separator != "" && entry.isDir() && !strings.Contains(strings.TrimPrefix(entry.name, o.Prefix), o.Separator) { return true }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 30.7K bytes - Click Count (0) -
cmd/metrics-v3-types.go
if descendant == arg { return true } if len(arg) >= len(descendant) { return false } if !strings.HasSuffix(arg, SlashSeparator) { arg += SlashSeparator } return strings.HasPrefix(descendant, arg) } // MetricType - represents the type of a metric. type MetricType int const ( // CounterMT - represents a counter metric. CounterMT MetricType = iotaCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Feb 28 19:33:08 GMT 2025 - 15.6K bytes - Click Count (0) -
src/cmd/cgo/ast.go
func (f *File) saveExport(x any, context astContext) { n, ok := x.(*ast.FuncDecl) if !ok { return } if n.Doc == nil { return } for _, c := range n.Doc.List { if !strings.HasPrefix(c.Text, "//export ") { continue } name := strings.TrimSpace(c.Text[9:]) if name == "" { error_(c.Pos(), "export missing name") } if name != n.Name.Name {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 08 17:58:59 GMT 2026 - 14.4K bytes - Click Count (0)