Documentation
¶
Index ¶
- Constants
- func CountryCodeToFlagEmoji(code string) string
- func GetLevelStyle(style lipgloss.Style, level string) lipgloss.Style
- func GetPercentKnownColor(style lipgloss.Style, percent float64) lipgloss.Style
- func GetReputationStyle(style lipgloss.Style, reputation string) lipgloss.Style
- func PrintSection(sectionStyle *pterm.Style, section string)
- func TruncateWithEllipsis(s string, max int) string
- type Display
- type KV
- type RowDisplay
Constants ¶
View Source
const ( JSONFormat = "json" HumanFormat = "human" )
Variables ¶
This section is empty.
Functions ¶
func CountryCodeToFlagEmoji ¶
func GetPercentKnownColor ¶
func GetReputationStyle ¶
func PrintSection ¶
func TruncateWithEllipsis ¶
Types ¶
type Display ¶
type Display struct { }
func NewDisplay ¶
func NewDisplay() *Display
func (*Display) DisplayReport ¶
type RowDisplay ¶
type RowDisplay struct {
// contains filtered or unexported fields
}
func NewRowDisplay ¶
func NewRowDisplay(writer *tabwriter.Writer, maxSpace int) *RowDisplay
func (*RowDisplay) PrintValue ¶
func (r *RowDisplay) PrintValue(value string, style lipgloss.Style)
Click to show internal directories.
Click to hide internal directories.