From 5dae340a827eaa23539f966d2d72958e693536d8 Mon Sep 17 00:00:00 2001 From: Pierre Durand Date: Mon, 5 Aug 2024 03:55:40 +0200 Subject: [PATCH] document the format used by WriteTypeAndValue --- pretty.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pretty.go b/pretty.go index 60e4570..102e892 100644 --- a/pretty.go +++ b/pretty.go @@ -160,6 +160,8 @@ func (c *Config) endRecursion(st *State) { } // WriteTypeAndValue writes the type and value to the writer. +// +// It writes "(TYPE) VALUE". func (c *Config) WriteTypeAndValue(w io.Writer, st *State, v reflect.Value) { if !v.IsValid() { WriteNil(w)