Search Options

Results per page
Sort
Preferred Languages
Advance

Results 621 - 630 of 727 for xprintf (0.12 sec)

  1. docs/distributed/DESIGN.md

                    atTotal += pool.Available
                    if atTotal > choose && pool.Available > 0 {
                            return pool.Index
                    }
            }
            // Should not happen, but print values just in case.
            panic(fmt.Errorf("reached end of serverPools (total: %v, atTotal: %v, choose: %v)", total, atTotal, choose))
    }
    ```
    
    ## Other usages
    
    ### Advanced use cases with multiple ellipses
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. cmd/config-current.go

    		if envOnly {
    			key = config.EnvPrefix + strings.ToTitle(subSys) + config.EnvWordDelimiter + strings.ToTitle(madmin.EnableKey)
    		}
    		help = append(help, config.HelpKV{
    			Key:         key,
    			Description: fmt.Sprintf("enable %s target, default is 'off'", subSys),
    			Optional:    false,
    			Type:        "on|off",
    		})
    	}
    
    	for _, hkv := range h {
    		key := hkv.Key
    		if envOnly {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/extra-models.md

    ```Python
    user_dict = user_in.dict()
    ```
    
    dann haben wir jetzt in der Variable `user_dict` ein `dict` mit den gleichen Daten (es ist ein `dict` statt eines Pydantic-Modellobjekts).
    
    Wenn wir es ausgeben:
    
    ```Python
    print(user_dict)
    ```
    
    bekommen wir ein Python-`dict`:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/handling-errors.md

    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’š โš™๏ธ โš  โคด๏ธ โฎ๏ธ ๐ŸŽ ๐Ÿ”ข โš  ๐Ÿ•โ€๐Ÿฆบ โšช๏ธโžก๏ธ **FastAPI**, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ—„ & ๐Ÿค-โš™๏ธ ๐Ÿ”ข โš  ๐Ÿ•โ€๐Ÿฆบ โšช๏ธโžก๏ธ `fastapi.exception_handlers`:
    
    ```Python hl_lines="2-5  15  21"
    {!../../docs_src/handling_errors/tutorial006.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. cmd/erasure-object_test.go

    	const numDisks = 4
    	path := t.TempDir()
    
    	var fsDirs []string
    	for i := 1; i <= numDisks; i++ {
    		fsDirs = append(fsDirs, filepath.Join(path, fmt.Sprintf("disk%d", i)))
    	}
    
    	objLayer, _, err := initObjectLayer(ctx, mustGetPoolEndpoints(0, fsDirs...))
    	if err != nil {
    		removeRoots(fsDirs)
    		t.Fatal(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. cmd/object-api-utils.go

    		if err != nil {
    			finalMD5Bytes = append(finalMD5Bytes, []byte(part.ETag)...)
    		} else {
    			finalMD5Bytes = append(finalMD5Bytes, md5Bytes...)
    		}
    	}
    	s3MD5 := fmt.Sprintf("%s-%d", getMD5Hash(finalMD5Bytes), len(parts))
    	return s3MD5
    }
    
    // Clean unwanted fields from metadata
    func cleanMetadata(metadata map[string]string) map[string]string {
    	// Remove STANDARD StorageClass
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  7. cmd/net.go

    // The logic to sort by last octet is implemented to
    // prefer CIDRs with higher octets, this in-turn skips the
    // localhost/loopback address to be not preferred as the
    // first ip on the list. Subsequently this list helps us print
    // a user friendly message with appropriate values.
    func sortIPs(ipList []string) []string {
    	if len(ipList) == 1 {
    		return ipList
    	}
    
    	var ipV4s []net.IP
    	var nonIPs []string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/handling-errors.md

    ```Python hl_lines="2-5  15  21"
    {!../../docs_src/handling_errors/tutorial006.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. schema/field.go

    			case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
    				field.ReflectValueOf(ctx, value).SetString(utils.ToString(data))
    			case float64, float32:
    				field.ReflectValueOf(ctx, value).SetString(fmt.Sprintf("%."+strconv.Itoa(field.Precision)+"f", data))
    			default:
    				return fallbackSetter(ctx, value, v, field.Set)
    			}
    			return err
    		}
    	default:
    		fieldValue := reflect.New(field.FieldType)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  10. cmd/metacache-entries_test.go

    		},
    	}
    
    	for testID, tt := range tests {
    		rng := rand.New(rand.NewSource(0))
    		// Run for a number of times, shuffling the input to ensure that output is consistent.
    		for i := 0; i < 10; i++ {
    			t.Run(fmt.Sprintf("test-%d-%s-run-%d", testID, tt.name, i), func(t *testing.T) {
    				if i > 0 {
    					rng.Shuffle(len(tt.m), func(i, j int) {
    						tt.m[i], tt.m[j] = tt.m[j], tt.m[i]
    					})
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
Back to top