Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airframe-pp: Add a pretty-print method module pp[A](obj: A) #2730

Open
xerial opened this issue Jan 31, 2023 · 0 comments
Open

airframe-pp: Add a pretty-print method module pp[A](obj: A) #2730

xerial opened this issue Jan 31, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@xerial
Copy link
Member

xerial commented Jan 31, 2023

It's convenient to have a standard pretty print method, and mask @secret

import wvlet.airfame.pp.PrettyPrint._

case class A(id: Int = 1, name: String)
pp(A(1, "leo"))

----------
A:
  - id: 1 (default: -1) 
  - name: leo

Related https://github.com/k0kubun/pp

@xerial xerial changed the title airframe-surface: Add a pretty-print method Surface.pp[A](obj: A) airframe-pp: Add a pretty-print method module pp[A](obj: A) Jan 31, 2023
@xerial xerial added this to the Airframe 24 milestone Jan 9, 2024
@xerial xerial mentioned this issue Jan 9, 2024
3 tasks
@xerial xerial self-assigned this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant