Help us shape the future of Go! Take the 2026 Go Developer Survey

iconcatalog

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: BSD-3-Clause Imports: 5 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

func Normalize added in v2.8.0

func Normalize(catalog string) string

Normalize maps a raw catalog preference onto one of the known catalog constants, falling back to the default for unknown values.

Types

type IconSet

type IconSet struct {
	Icon  string
	Light string
	Dark  string
}

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