- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 694 for Ok (0.02 seconds)
-
schema/utils_test.go
} } func TestParseTagSettingWithDoubleQuoteEscape(t *testing.T) { tag := `gorm:"expression:to_tsvector('english', \"Name\")"` settings := ParseTagSetting(reflect.StructTag(tag).Get("gorm"), ";") if v, ok := settings["EXPRESSION"]; !ok || v != `to_tsvector('english', "Name")` { t.Errorf("ParseTagSetting did not handle escaped double quotes correctly: got %#v", v) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Oct 30 11:15:36 GMT 2025 - 1.8K bytes - Click Count (0) -
docs/iam/identity-manager-plugin.go
} func mainHandler(w http.ResponseWriter, r *http.Request) { token := r.FormValue("token") if token == "" { writeErrorResponse(w, errors.New("token parameter not given")) return } rsp, ok := tokens[token] if !ok { w.WriteHeader(http.StatusForbidden) return } fmt.Printf("Allowed for token: %s user: %s\n", token, rsp.User) w.WriteHeader(http.StatusOK) json.NewEncoder(w).Encode(rsp) return }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 01 21:31:13 GMT 2024 - 2.1K bytes - Click Count (0) -
cmd/xl-storage-free-version_test.go
j.MetaSys[metaTierObjName] = []byte("obj-1") if _, ok := j.InitFreeVersion(fi); !ok { t.Fatal("Expected a free version to be created") } // Test if we skip creating a free version if SkipTier was set on fi fi.SetSkipTierFreeVersion() if _, ok := j.InitFreeVersion(fi); ok { t.Fatal("Expected no free version to be created") }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Mar 02 05:11:03 GMT 2024 - 7.8K bytes - Click Count (0) -
clause/clause_test.go
stmt = gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}} ) for _, c := range clauses { if _, ok := buildNamesMap[c.Name()]; !ok { buildNames = append(buildNames, c.Name()) buildNamesMap[c.Name()] = true } stmt.AddClause(c) } stmt.Build(buildNames...) if strings.TrimSpace(stmt.SQL.String()) != result {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Jun 02 02:50:38 GMT 2020 - 1012 bytes - Click Count (0) -
cmd/dummy-data-generator_test.go
{ r1 := bytes.NewReader([]byte("abc")) r2 := bytes.NewReader([]byte("abc")) ok, msg := cmpReaders(r1, r2) if !ok || msg != "" { t.Fatalf("unexpected") } } { r1 := bytes.NewReader([]byte("abc")) r2 := bytes.NewReader([]byte("abcd")) ok, _ := cmpReaders(r1, r2) if ok { t.Fatalf("unexpected") } }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.8K bytes - Click Count (0) -
internal/logger/logger.go
f = strings.TrimPrefix(filepath.ToSlash(f), filepath.ToSlash(trimString)) } return filepath.FromSlash(f) } func getSource(level int) string { pc, file, lineNumber, ok := runtime.Caller(level) if ok { // Clean up the common prefixes file = trimTrace(file) _, funcName := filepath.Split(runtime.FuncForPC(pc).Name()) return fmt.Sprintf("%v:%v:%v()", file, lineNumber, funcName) } return ""
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.4K bytes - Click Count (0) -
cmd/object-handlers.go
ChecksumType: chkSums[xhttp.AmzChecksumType], } } } if _, ok := opts.ObjectAttributes[xhttp.ETag]; ok { OA.ETag = objInfo.ETag } if _, ok := opts.ObjectAttributes[xhttp.ObjectSize]; ok { OA.ObjectSize, _ = objInfo.GetActualSize() } if _, ok := opts.ObjectAttributes[xhttp.StorageClass]; ok { OA.StorageClass = filterStorageClass(ctx, objInfo.StorageClass) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 120.6K bytes - Click Count (0) -
clause/select.go
} builder.WriteQuoted(column) } } else { builder.WriteByte('*') } } func (s Select) MergeClause(clause *Clause) { if s.Expression != nil { if s.Distinct { if expr, ok := s.Expression.(Expr); ok { expr.SQL = "DISTINCT " + expr.SQL clause.Expression = expr return } } clause.Expression = s.Expression } else { clause.Expression = s } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Jul 14 07:51:24 GMT 2021 - 1.1K bytes - Click Count (0) -
cmd/bucket-replication-metrics.go
q.srQueueStats.update() for _, s := range q.bucketStats { s.update() } } func (q *queueCache) getBucketStats(bucket string) InQueueMetric { q.RLock() defer q.RUnlock() v, ok := q.bucketStats[bucket] if !ok { return InQueueMetric{} } return InQueueMetric{ Curr: QStat{Bytes: float64(v.nowBytes), Count: float64(v.nowCount)},
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 14.2K bytes - Click Count (0) -
cmd/object-api-options.go
var clientKey [32]byte var sse encrypt.ServerSide opts = ObjectOptions{UserDefined: metadata} if v, ok := header[xhttp.MinIOSourceProxyRequest]; ok { opts.ProxyHeaderSet = true opts.ProxyRequest = strings.Join(v, "") == "true" } if _, ok := header[xhttp.MinIOSourceReplicationRequest]; ok { opts.ReplicationRequest = true } opts.Speedtest = header.Get(globalObjectPerfUserMetadata) != "" if copySource {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.3K bytes - Click Count (0)