formatter

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	StringFormat(x any) (string, error)
}

Formatter formats numbers, percentages and time intervals The code is based on the logic implemented on the frontend Type and file names are kept mostly the same for consistency and ease of updating

func NewD3Formatter

func NewD3Formatter(useUnabridged bool) (Formatter, error)

func NewPresetFormatter

func NewPresetFormatter(preset string, useUnabridged bool) (Formatter, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL