Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for double (0.17 sec)

  1. internal/etag/etag.go

    //
    // In non-strict mode, parse also accepts ETags
    // that are not AWS S3 compatible - e.g. encrypted
    // 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
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  2. internal/kms/context.go

    // array position can be safely represented inside a JSON string, embedded
    // inside of HTML <script> tags, without any additional escaping.
    //
    // All values are true except for the ASCII control characters (0-31), the
    // double quote ("), the backslash character ("\"), HTML opening and closing
    // tags ("<" and ">"), and the ampersand ("&").
    var htmlSafeSet = [utf8.RuneSelf]bool{
    	' ':      true,
    	'!':      true,
    	'"':      false,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    	// compiled by gc
    
    	//go:cgo_ldflag "-lm"
    
    	type _Ctype_double float64
    
    	//go:cgo_import_static _cgo_gcc_Cfunc_sin
    	//go:linkname __cgo_gcc_Cfunc_sin _cgo_gcc_Cfunc_sin
    	var __cgo_gcc_Cfunc_sin byte
    	var _cgo_gcc_Cfunc_sin = unsafe.Pointer(&__cgo_gcc_Cfunc_sin)
    
    	func _Cfunc_sin(p0 _Ctype_double) (r1 _Ctype_double) {
    		_cgo_runtime_cgocall(_cgo_gcc_Cfunc_sin, uintptr(unsafe.Pointer(&p0)))
    		return
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  4. tests/sql_builder_test.go

    		t.Fatalf("\nexpected: %s\nactually: %s", expected, actually)
    	}
    }
    
    func replaceQuoteInSQL(sql string) string {
    	// convert single quote into double quote
    	sql = strings.ReplaceAll(sql, `'`, `"`)
    
    	// convert dialect special quote into double quote
    	switch DB.Dialector.Name() {
    	case "postgres":
    		sql = strings.ReplaceAll(sql, `"`, `"`)
    	case "mysql", "sqlite":
    		sql = strings.ReplaceAll(sql, "`", `"`)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  5. prepare_stmt.go

    		// wait for other goroutines prepared
    		<-stmt.prepared
    		if stmt.prepareErr != nil {
    			return Stmt{}, stmt.prepareErr
    		}
    
    		return *stmt, nil
    	}
    	db.Mux.RUnlock()
    
    	db.Mux.Lock()
    	// double check
    	if stmt, ok := db.Stmts[query]; ok && (!stmt.Transaction || isTransaction) {
    		db.Mux.Unlock()
    		// wait for other goroutines prepared
    		<-stmt.prepared
    		if stmt.prepareErr != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 28 08:47:39 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. cmd/object-api-interface.go

    	FastGetObjInfo bool // Only for S3 Head/Get Object calls for now
    	NoAuditLog     bool // Only set for decom, rebalance, to avoid double audits.
    }
    
    // WalkOptions provides filtering, marker and other Walk() specific options.
    type WalkOptions struct {
    	Filter       func(info FileInfo) bool // return WalkFilter returns 'true/false'
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  7. cmd/object-handlers-common.go

    	// use mtime < t+1s instead of mtime <= t to check for unmodified.
    	return objTime.After(givenTime.Add(1 * time.Second))
    }
    
    // canonicalizeETag returns ETag with leading and trailing double-quotes removed,
    // if any present
    func canonicalizeETag(etag string) string {
    	return etagRegex.ReplaceAllString(etag, "$1")
    }
    
    // isETagEqual return true if the canonical representations of two ETag strings
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  8. internal/s3select/sql/parser.go

    	r := values[0][1 : n-1]
    	// Translate doubled quotes
    	*ls = LiteralList(strings.Split(r, ","))
    	return nil
    }
    
    // ObjectKey is a type for parsed strings occurring in key paths
    type ObjectKey struct {
    	Lit *LiteralString `parser:" \"[\" @LitString \"]\""`
    	ID  *Identifier    `parser:"| \".\" @@"`
    }
    
    // QuotedIdentifier is a type for parsed strings that are double
    // quoted.
    type QuotedIdentifier string
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. cmd/object-api-utils_test.go

    		{"a/b/c/", false},
    		{"../../etc", false},
    		{"../../", false},
    		{"/../../etc", false},
    		{" ../etc", false},
    		{"./././", false},
    		{"./etc", false},
    		{`contains//double/forwardslash`, false},
    		{`//contains/double-forwardslash-prefix`, false},
    		{string([]byte{0xff, 0xfe, 0xfd}), false},
    	}
    
    	for i, testCase := range testCases {
    		isValidObjectName := IsValidObjectName(testCase.objectName)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  10. tests/scan_test.go

    	if err := DB.Table("users").Select("age + age as age").Where("id = ?", user3.ID).Scan(&doubleAgeRes).Error; err != nil {
    		t.Errorf("Scan to pointer of pointer")
    	}
    
    	if doubleAgeRes.Age != int(res.Age)*2 {
    		t.Errorf("Scan double age as age, expect: %v, got %v", res.Age*2, doubleAgeRes.Age)
    	}
    
    	var results []result
    	DB.Table("users").Select("name, age").Where("id in ?", []uint{user2.ID, user3.ID}).Scan(&results)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat May 28 14:18:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
Back to top