iconcatalog

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package iconcatalog resolves Arcane icon metadata into catalog URLs.

Index

Constants

View Source
const (
	CatalogSelfhst        = "selfhst"
	CatalogDashboardIcons = "dashboard-icons"
	DefaultCatalog        = CatalogSelfhst
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IconSet

type IconSet struct {
	Icon  string
	Light string
	Dark  string
}

func FirstNonEmpty

func FirstNonEmpty(sets ...IconSet) IconSet

func (IconSet) HasVariant

func (s IconSet) HasVariant() bool

func (IconSet) IsEmpty

func (s IconSet) IsEmpty() bool

type ResolvedIconSet

type ResolvedIconSet struct {
	IconLightURL string
	IconDarkURL  string
}

func Resolve

func Resolve(catalog string, set IconSet) ResolvedIconSet

Jump to

Keyboard shortcuts

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