Skip to content

Releases: k0kubun/pp

3.2.0

16 Oct 07:35
f2ac4d3
Compare
Choose a tag to compare

Changes

  • Expose the default printer as pp.Default
    • You can call it to use newer configuration API globally

Example:

pp.Default.SetExportedOnly(true)

Impact

The following things will newly be configurable globally:

  • SetDecimalUnit
  • SetExportedOnly
  • SetOutput
  • SetThousandsSeparator

The following things were already available as pp.*, but now you're encouraged to use pp.Default.* instead:

  • SetColoringEnabled
    • Original ColoringEnabled
  • SetColorScheme, ResetColorScheme
  • SetOutput, ResetOutput
    • Original: SetDefaultOutput, ResetDefaultOutput