ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(ctx context.Context, t time.Time) string

FormatDate formats t as a date-only string, day/month order chosen by ctx's detected locale.

func FormatDateTime

func FormatDateTime(ctx context.Context, t time.Time) string

FormatDateTime formats t as a date+time (24h) string, day/month order chosen by ctx's detected locale.

func FormatMoney

func FormatMoney(ctx context.Context, cents int64) string

FormatMoney formats an int64 smallest-currency-unit value (x100, e.g. 2500000 → "25,000", 250050 → "2,500.50") using ctx's detected locale for digit grouping and decimal/thousands separators.

Types

This section is empty.

Jump to

Keyboard shortcuts

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