Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for KindFloat64 (0.14 sec)

  1. src/runtime/metrics/value.go

    	// KindBad indicates that the Value has no type and should not be used.
    	KindBad ValueKind = iota
    
    	// KindUint64 indicates that the type of the Value is a uint64.
    	KindUint64
    
    	// KindFloat64 indicates that the type of the Value is a float64.
    	KindFloat64
    
    	// KindFloat64Histogram indicates that the type of the Value is a *Float64Histogram.
    	KindFloat64Histogram
    )
    
    // Value represents a metric value returned by the runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/log/slog/json_handler.go

    	case KindString:
    		s.appendString(v.str())
    	case KindInt64:
    		*s.buf = strconv.AppendInt(*s.buf, v.Int64(), 10)
    	case KindUint64:
    		*s.buf = strconv.AppendUint(*s.buf, v.Uint64(), 10)
    	case KindFloat64:
    		// json.Marshal is funny about floats; it doesn't
    		// always match strconv.AppendFloat. So just call it.
    		// That's expensive, but floats are rare.
    		if err := appendJSONMarshal(s.buf, v.Float64()); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:18:11 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top