internal

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDisplayName

func GetDisplayName(reference string) (string, bool)

func HasSelfhstIcon

func HasSelfhstIcon(name string, filetype string) bool

func HasWalkxCodeIcon

func HasWalkxCodeIcon(name string, filetype string) bool

func InitIconListCache

func InitIconListCache()

func SearchIcons

func SearchIcons(keyword string, limit int) ([]string, error)

Types

type Cache

type Cache struct {
	WalkxCode, Selfhst IconsMap
	DisplayNames       ReferenceDisplayNameMap
	IconList           IconList // combined into a single list
}

func ListAvailableIcons

func ListAvailableIcons() (*Cache, error)

type GitHubContents

type GitHubContents struct {
	Type string `json:"type"`
	Path string `json:"path"`
	Name string `json:"name"`
	Sha  string `json:"sha"`
	Size int    `json:"size"`
}

type IconList

type IconList []string

type IconsMap

type IconsMap map[string]map[string]struct{}

type ReferenceDisplayNameMap

type ReferenceDisplayNameMap map[string]string

Jump to

Keyboard shortcuts

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