Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for FormatInt (0.2 sec)

  1. utils/utils.go

    	switch v := value.(type) {
    	case string:
    		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:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/grid/debugmsg_string.go

    var _debugMsg_index = [...]uint8{0, 13, 29, 46, 62, 86, 112, 130, 151}
    
    func (i debugMsg) String() string {
    	if i < 0 || i >= debugMsg(len(_debugMsg_index)-1) {
    		return "debugMsg(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _debugMsg_name[_debugMsg_index[i]:_debugMsg_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 16:43:38 GMT 2024
    - 993 bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/action_string.go

    var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127, 150, 182, 193}
    
    func (i Action) String() string {
    	if i < 0 || i >= Action(len(_Action_index)-1) {
    		return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _Action_name[_Action_index[i]:_Action_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. cmd/osmetric_string.go

    var _osMetric_index = [...]uint8{0, 9, 17, 22, 28, 37, 46, 57, 68, 72, 88, 93, 99, 103, 109, 115, 125, 134, 138, 142}
    
    func (i osMetric) String() string {
    	if i >= osMetric(len(_osMetric_index)-1) {
    		return "osMetric(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _osMetric_name[_osMetric_index[i]:_osMetric_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  5. internal/logger/audit.go

    		entry.API.InputBytes = r.ContentLength
    		entry.API.OutputBytes = outputBytes
    		entry.API.HeaderBytes = headerBytes
    		entry.API.TimeToResponse = strconv.FormatInt(timeToResponse.Nanoseconds(), 10) + "ns"
    		entry.API.TimeToResponseInNS = strconv.FormatInt(timeToResponse.Nanoseconds(), 10)
    		// We hold the lock, so we cannot call reqInfo.GetTagsMap().
    		tags := make(map[string]interface{}, len(reqInfo.tags))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. internal/grid/handlers_string.go

    func (i HandlerID) String() string {
    	if i >= HandlerID(len(_HandlerID_index)-1) {
    		return "HandlerID(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _HandlerID_name[_HandlerID_index[i]:_HandlerID_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  7. cmd/bucket-policy.go

    		authtype = "REST-HEADER"
    	case authTypePostPolicy:
    		authtype = "POST"
    	}
    
    	args := map[string][]string{
    		"CurrentTime":      {currTime.Format(time.RFC3339)},
    		"EpochTime":        {strconv.FormatInt(currTime.Unix(), 10)},
    		"SecureTransport":  {strconv.FormatBool(r.TLS != nil)},
    		"SourceIp":         {handlers.GetSourceIPRaw(r)},
    		"UserAgent":        {r.UserAgent()},
    		"Referer":          {r.Referer()},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    	req.Header.Set("x-amz-content-sha256", "STREAMING-AWS4-HMAC-SHA256-PAYLOAD")
    	req.Header.Set("content-encoding", "aws-chunked")
    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    	req.Body = io.NopCloser(body)
    	req.ContentLength = contentLength
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  9. internal/disk/stat_linux_32bit.go

    	"2fc12fc1": "zfs",
    	"ff534d42": "cifs",
    	"53464846": "wslfs",
    }
    
    // getFSType returns the filesystem type of the underlying mounted filesystem
    func getFSType(ftype int32) string {
    	fsTypeHex := strconv.FormatInt(int64(ftype), 16)
    	fsTypeString, ok := fsType2StringMap[fsTypeHex]
    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. internal/config/notify/legacy.go

    		},
    		config.KV{
    			Key:   target.NATSTLSSkipVerify,
    			Value: config.FormatBool(cfg.Secure),
    		},
    		config.KV{
    			Key:   target.NATSPingInterval,
    			Value: strconv.FormatInt(cfg.PingInterval, 10),
    		},
    		config.KV{
    			Key:   target.NATSQueueDir,
    			Value: cfg.QueueDir,
    		},
    		config.KV{
    			Key:   target.NATSQueueLimit,
    			Value: strconv.Itoa(int(cfg.QueueLimit)),
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 13.1K bytes
    - Viewed (0)
Back to top