util

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package util provides shared utility functions used across the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColour

func GetColour(palette *colour.CategorisedPalette, role colour.Role, fallback string) string

GetColour retrieves a colour by role from a categorised palette with a fallback. This is a common helper used by output plugins to safely get colours with defaults.

func StripHash

func StripHash(hex string) string

StripHash removes the # prefix from a hex colour string. This is useful for formats that don't expect the hash prefix.

Types

This section is empty.

Directories

Path Synopsis
Package http provides HTTP utilities for fetching remote resources.
Package http provides HTTP utilities for fetching remote resources.
Package imagecache provides utilities for downloading and caching remote images.
Package imagecache provides utilities for downloading and caching remote images.

Jump to

Keyboard shortcuts

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