- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for appendTextValue (0.2 sec)
-
src/log/slog/text_handler.go
// // Each call to Handle results in a single serialized call to // 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 {
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/handler.go
// Otherwise just print the original panic message. s.appendString(fmt.Sprintf("!PANIC: %v", r)) } }() var err error if s.h.json { err = appendJSONValue(s, v) } else { err = appendTextValue(s, v) } if err != nil { s.appendError(err) } } func (s *handleState) appendTime(t time.Time) { if s.h.json { appendJSONTime(s, t) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 18:18:13 UTC 2023 - 17.5K bytes - Viewed (0)