Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorLabel = "#555" ColorGreen = "#00D084" ColorBlue = "#3B82F6" ColorYellow = "#F59E0B" ColorRed = "#EF4444" ColorPurple = "#8B5CF6" ColorGray = "#6B7280" ColorTeal = "#14B8A6" ColorIndigo = "#6366F1" )
Variables ¶
This section is empty.
Functions ¶
func FormatCompact ¶
FormatCompact creates a compact representation like "1.2k / 42".
func FormatNumber ¶
FormatNumber formats a number with k/M/B suffixes for compact display.
func GetInstancesColor ¶
func GetMetricColor ¶
Types ¶
type Badge ¶
type Badge struct {
Label string
Value string
Color string // Hex color for value side
LabelColor string // Hex color for label side (default: ColorLabel)
}
Badge represents a shield-style badge with label and value.
Click to show internal directories.
Click to hide internal directories.