Documentation ¶
Index ¶
Constants ¶
View Source
const LastReservedID = 163
LastReservedID is id of last built-in/reserved format
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(value, code string, t primitives.CellType) string
Format tries to format value into required format code
func New ¶
func New(id int, code string) ml.NumberFormat
New create and return ml.NumberFormat type for provided values, respecting built-in number formats
func Normalize ¶
func Normalize(nf ml.NumberFormat) ml.NumberFormat
Normalize tries resolve provided format via list of built-in formats and returns one of built-in or original format
func Resolve ¶
func Resolve(nf ml.NumberFormat) *builtInFormat
Resolve looks through built-in number formats and return related if there is any
Types ¶
Click to show internal directories.
Click to hide internal directories.