- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,214 for Func (0.07 sec)
-
tests/query_test.go
t.Fatalf("Build OR condition, but got %v", result.Statement.SQL.String()) } } type Int64 int64 func (v Int64) Value() (driver.Value, error) { return v - 1, nil } func (f *Int64) Scan(v interface{}) error { y := v.(int64) *f = Int64(y + 1) return nil } func TestPluck(t *testing.T) { users := []*User{ GetUser("pluck-user1", Config{}), GetUser("pluck-user2", Config{}),
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 50.4K bytes - Viewed (0) -
src/cmd/api/testdata/src/pkg/p1/p1.go
error Temporary() bool } func (myInt) privateTypeMethod() {} func (myInt) CapitalMethodUnexportedType() {} // Deprecated: use TMethod. func (s *S2) SMethod(x int8, y int16, z int64) {} type s struct{} func (s) method() func (s) Method() func (S) StructValueMethod() func (ignored S) StructValueMethodNamedRecv() func (s *S2) unexported(x int8, y int16, z int64) {}
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Dec 02 16:29:41 UTC 2022 - 3.3K bytes - Viewed (0) -
internal/kms/kms.go
client *kms.Client } func (c *kmsConn) Version(ctx context.Context) (string, error) { resp, err := c.client.Version(ctx, &kms.VersionRequest{}) if len(resp) == 0 && err != nil { return "", err } return resp[0].Version, nil } func (c *kmsConn) APIs(ctx context.Context) ([]madmin.KMSAPI, error) { return nil, ErrNotSupported }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tests/benchmark_test.go
. "gorm.io/gorm/utils/tests" ) func BenchmarkCreate(b *testing.B) { user := *GetUser("bench", Config{}) for x := 0; x < b.N; x++ { user.ID = 0 DB.Create(&user) } } func BenchmarkFind(b *testing.B) { user := *GetUser("find", Config{}) DB.Create(&user) for x := 0; x < b.N; x++ { DB.Find(&User{}, "id = ?", user.ID) } } func BenchmarkScan(b *testing.B) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 01 03:50:57 UTC 2022 - 1.5K bytes - Viewed (0) -
cmd/site-replication-utils.go
peerResyncMap map[string]resyncState } func newSiteResyncMetrics(ctx context.Context) *siteResyncMetrics { s := siteResyncMetrics{ resyncStatus: make(map[string]SiteResyncStatus), peerResyncMap: make(map[string]resyncState), } go s.save(ctx) go s.init(ctx) return &s } // init site resync metrics func (sm *siteResyncMetrics) init(ctx context.Context) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 8.9K bytes - Viewed (0) -
clause/set_test.go
t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars) }) } } func TestAssignments(t *testing.T) { set := clause.Assignments(map[string]interface{}{ "name": "jinzhu", "age": 18, }) assignments := []clause.Assignment(set) sort.Slice(assignments, func(i, j int) bool {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 1.4K bytes - Viewed (0) -
internal/http/dial_linux.go
"context" "net" "syscall" "time" "github.com/minio/minio/internal/deadlineconn" "golang.org/x/sys/unix" ) func setTCPParametersFn(opts TCPOptions) func(network, address string, c syscall.RawConn) error { return func(network, address string, c syscall.RawConn) error { c.Control(func(fdPtr uintptr) { // got socket file descriptor to set parameters. fd := int(fdPtr)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 23 10:53:03 UTC 2024 - 5K bytes - Viewed (0) -
internal/crypto/sse-c.go
SSEC = ssec{} _ Type = SSEC ) // String returns the SSE domain as string. For SSE-C the // domain is "SSE-C". func (ssec) String() string { return "SSE-C" } // IsRequested returns true if the HTTP headers contains // at least one SSE-C header. SSE-C copy headers are ignored. func (ssec) IsRequested(h http.Header) bool { if _, ok := h[xhttp.AmzServerSideEncryptionCustomerAlgorithm]; ok { return true }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 5.2K bytes - Viewed (0) -
cmd/tier-last-day-stats_gen.go
package cmd // Code generated by github.com/tinylib/msgp DO NOT EDIT. import ( "github.com/tinylib/msgp/msgp" ) // DecodeMsg implements msgp.Decodable func (z *DailyAllTierStats) DecodeMsg(dc *msgp.Reader) (err error) { var zb0004 uint32 zb0004, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err) return } if (*z) == nil { (*z) = make(DailyAllTierStats, zb0004) } else if len((*z)) > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 9.3K bytes - Viewed (0) -
internal/s3select/sql/statement.go
} // IsAggregated returns if the statement involves SQL aggregation func (e *SelectStatement) IsAggregated() bool { return e.selectQProp.isAggregation } // AggregateResult - returns the aggregated result after all input // records have been processed. Applies only to aggregation queries. func (e *SelectStatement) AggregateResult(output Record) error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 8.9K bytes - Viewed (0)