pp icon indicating copy to clipboard operation
pp copied to clipboard

Option to format time.Time

Open dennypenta opened this issue 7 months ago • 1 comments

The problem: I have a struct with a bunch of populated fields. I want to print the struct in order to use it in my unit test as data input and not to describe it manually.

The library fits it well, but a few formatting options are missing.

The solution Add an optional formatting for fields like time.Time and may be the others, instead of raw string value I would like to see:

time.Date(1, 2, 3, 5, 6, 7, time.Local)

Any questions/concerns regarding the feature?

dennypenta avatar Dec 07 '23 13:12 dennypenta