- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for kindString (0.14 sec)
-
src/log/slog/value.go
KindDuration KindFloat64 KindInt64 KindString KindTime KindUint64 KindGroup KindLogValuer ) var kindStrings = []string{ "Any", "Bool", "Duration", "Float64", "Int64", "String", "Time", "Uint64", "Group", "LogValuer", } func (k Kind) String() string { if k >= 0 && int(k) < len(kindStrings) { return kindStrings[k] } return "<unknown slog.Kind>" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/log/slog/value_access_benchmark_test.go
bb bool u uint64 d time.Duration f float64 a any ) b.Run("switch-checked", func(b *testing.B) { for i := 0; i < b.N; i++ { for _, v := range vs { switch v.Kind() { case KindString: s = v.String() case KindInt64: ii = v.Int64() case KindUint64: u = v.Uint64() case KindFloat64: f = v.Float64() case KindBool: bb = v.Bool()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 21 20:55:33 UTC 2023 - 4.3K bytes - Viewed (0) -
src/log/slog/internal/benchmarks/handlers.go
return true }) buf.WriteByte('\n') _, err := h.w.Write(*buf) return err } func (h *fastTextHandler) appendValue(buf *buffer.Buffer, v slog.Value) { switch v.Kind() { case slog.KindString: buf.WriteString(v.String()) case slog.KindInt64: *buf = strconv.AppendInt(*buf, v.Int64(), 10) case slog.KindUint64: *buf = strconv.AppendUint(*buf, v.Uint64(), 10) case slog.KindFloat64:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 12 20:33:37 UTC 2023 - 4.1K bytes - Viewed (0) -
src/log/slog/text_handler.go
// io.Writer.Write. func (h *TextHandler) Handle(_ context.Context, r Record) error { return h.commonHandler.handle(r) } func appendTextValue(s *handleState, v Value) error { switch v.Kind() { case KindString: s.appendString(v.str()) case KindTime: s.appendTime(v.time()) case KindAny: if tm, ok := v.any.(encoding.TextMarshaler); ok { data, err := tm.MarshalText() if err != nil { return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 22:56:07 UTC 2023 - 4.7K bytes - Viewed (0) -
src/log/slog/json_handler.go
} s.buf.WriteByte('"') *s.buf = t.AppendFormat(*s.buf, time.RFC3339Nano) s.buf.WriteByte('"') } func appendJSONValue(s *handleState, v Value) error { switch v.Kind() { 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:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:18:11 UTC 2023 - 8.1K bytes - Viewed (0) -
src/go/types/expr.go
case *Slice, *Signature, *Map: return check.kindString(typ) + " can only be compared to nil" } // see if we can extract a more specific error var cause string comparable(typ, true, nil, func(format string, args ...interface{}) { cause = check.sprintf(format, args...) }) return cause } // kindString returns the type kind as a string. func (check *Checker) kindString(typ Type) string { switch under(typ).(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
api/go1.21.txt
pkg log/slog, const KindInt64 = 4 #56345 pkg log/slog, const KindInt64 Kind #56345 pkg log/slog, const KindLogValuer = 9 #56345 pkg log/slog, const KindLogValuer Kind #56345 pkg log/slog, const KindString = 5 #56345 pkg log/slog, const KindString Kind #56345 pkg log/slog, const KindTime = 6 #56345 pkg log/slog, const KindTime Kind #56345 pkg log/slog, const KindUint64 = 7 #56345 pkg log/slog, const KindUint64 Kind #56345
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 09:39:17 UTC 2023 - 25.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
case *Slice, *Signature, *Map: return check.kindString(typ) + " can only be compared to nil" } // see if we can extract a more specific error var cause string comparable(typ, true, nil, func(format string, args ...interface{}) { cause = check.sprintf(format, args...) }) return cause } // kindString returns the type kind as a string. func (check *Checker) kindString(typ Type) string { switch under(typ).(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/kind_string.go
Matthew Dempsky <******@****.***> 1669944280 -0800
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:38 UTC 2023 - 1.6K bytes - Viewed (0) -
src/go/constant/kind_string.go
Robert Griesemer <******@****.***> 1621277393 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 17 19:11:05 UTC 2021 - 676 bytes - Viewed (0)