Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 415 for strconv (0.18 sec)

  1. src/archive/tar/strconv.go

    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    	// Final adjustment if adding size field increased the record size.
    	if len(record) != size {
    		size = len(record)
    		record = strconv.Itoa(size) + " " + k + "=" + v + "\n"
    	}
    	return record, nil
    }
    
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. src/archive/tar/strconv_test.go

    Emmanuel T Odeke <******@****.***> 1612431558 -0800
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  3. internal/config/notify/legacy.go

    		},
    		config.KV{
    			Key:   target.KafkaQueueLimit,
    			Value: strconv.Itoa(int(cfg.QueueLimit)),
    		},
    		config.KV{
    			Key:   target.KafkaTLS,
    			Value: config.FormatBool(cfg.TLS.Enable),
    		},
    		config.KV{
    			Key:   target.KafkaTLSSkipVerify,
    			Value: config.FormatBool(cfg.TLS.SkipVerify),
    		},
    		config.KV{
    			Key:   target.KafkaTLSClientAuth,
    			Value: strconv.Itoa(int(cfg.TLS.ClientAuth)),
    		},
    		config.KV{
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  4. utils/utils.go

    		return v
    	case int:
    		return strconv.FormatInt(int64(v), 10)
    	case int8:
    		return strconv.FormatInt(int64(v), 10)
    	case int16:
    		return strconv.FormatInt(int64(v), 10)
    	case int32:
    		return strconv.FormatInt(int64(v), 10)
    	case int64:
    		return strconv.FormatInt(v, 10)
    	case uint:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint8:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint16:
    Go
    - Registered: Sun Apr 14 09:35:11 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. internal/s3select/sql/value_test.go

    			// Seems to be what strconv.ParseInt returns
    			want:   math.Inf(1),
    			wantOK: false,
    		},
    		{
    			name: "min-underflow",
    			fields: fields{
    				value: []byte("-1.797693134862315708145274237317043567981e+309"),
    			},
    			// Seems to be what strconv.ParseInt returns
    			want:   math.Inf(-1),
    			wantOK: false,
    		},
    		{
    			name: "smallest-pos",
    			fields: fields{
    Go
    - Registered: Sun Apr 07 19:28:10 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  6. cmd/httprange.go

    func (h *HTTPRangeSpec) ToHeader() (string, error) {
    	if h == nil {
    		return "", nil
    	}
    	start := strconv.Itoa(int(h.Start))
    	end := strconv.Itoa(int(h.End))
    	switch {
    	case h.Start >= 0 && h.End >= 0:
    		if h.Start > h.End {
    			return "", errInvalidRange
    		}
    	case h.IsSuffixLength:
    		end = strconv.Itoa(int(h.Start * -1))
    		start = ""
    	case h.Start > -1:
    		end = ""
    	default:
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Mon Jul 24 14:56:28 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  7. cmd/api-resources.go

    package cmd
    
    import (
    	"encoding/base64"
    	"net/url"
    	"strconv"
    )
    
    // Parse bucket url queries
    func getListObjectsV1Args(values url.Values) (prefix, marker, delimiter string, maxkeys int, encodingType string, errCode APIErrorCode) {
    	errCode = ErrNone
    
    	if values.Get("max-keys") != "" {
    		var err error
    		if maxkeys, err = strconv.Atoi(values.Get("max-keys")); err != nil {
    			errCode = ErrInvalidMaxKeys
    			return
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Wed Jun 07 18:25:26 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  8. internal/config/notify/parse.go

    		}
    		queueLimit, err := strconv.ParseUint(env.Get(queueLimitEnv, kv.Get(target.KafkaQueueLimit)), 10, 64)
    		if err != nil {
    			return nil, err
    		}
    
    		clientAuthEnv := target.EnvKafkaTLSClientAuth
    		if k != config.Default {
    			clientAuthEnv = clientAuthEnv + config.Default + k
    		}
    		clientAuth, err := strconv.Atoi(env.Get(clientAuthEnv, kv.Get(target.KafkaTLSClientAuth)))
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 46.4K bytes
    - Viewed (0)
  9. cmd/metacache-marker.go

    		case "id":
    			o.ID = kv[1]
    		case "return":
    			o.ID = mustGetUUID()
    			o.Create = true
    		case "p": // pool
    			v, err := strconv.ParseInt(kv[1], 10, 64)
    			if err != nil {
    				o.ID = mustGetUUID()
    				o.Create = true
    				continue
    			}
    			o.pool = int(v)
    		case "s": // set
    			v, err := strconv.ParseInt(kv[1], 10, 64)
    			if err != nil {
    				o.ID = mustGetUUID()
    				o.Create = true
    				continue
    			}
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. cmd/healingmetric_string.go

    // Code generated by "stringer -type=healingMetric -trimprefix=healingMetric erasure-healing.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[healingMetricBucket-0]
    	_ = x[healingMetricObject-1]
    	_ = x[healingMetricCheckAbandonedParts-2]
    }
    
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Mon Nov 28 18:20:55 GMT 2022
    - 789 bytes
    - Viewed (0)
Back to top