8000 Set max depth · Issue #43 · kr/pretty · GitHub
[go: up one dir, main page]

Skip to content

Set max depth #43

Open
Open

Description

@alexflint

I use this package regularly across several projects - thanks for building it!

Would it be possible to add a way to control the max depth? At the moment I see it is set to 10 but sometimes I want more:

https://github.com/kr/pretty/blob/master/formatter.go#L95

Activity

  1. Heanthor commented on Jan 29, 2018

    @Heanthor

    I'd like to second this issue, but for another reason. I have a simple struct that happens to contain a time.Time, and this library prints out hundreds of lines of internal time info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0