Pp Versions Save

Colored pretty printer for Go language

v3.2.0

1 year ago

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