Skip to content

Commit

Permalink
document the format used by WriteTypeAndValue
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrre committed Aug 5, 2024
1 parent 3264a4e commit 5dae340
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5dae340

Please sign in to comment.