index

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultIndexURL = "https://raw.githubusercontent.com/playsthisgame/melon/main/index.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name        string   `yaml:"name"`
	Description string   `yaml:"description"`
	Author      string   `yaml:"author"`
	Tags        []string `yaml:"tags"`
	Featured    bool     `yaml:"featured"`
}

Entry is a single skill record from the melon-index.

func Fetch

func Fetch(url string) ([]Entry, error)

Fetch downloads and parses the index.yaml at the given URL.

func Find

func Find(entries []Entry, name string) *Entry

Find returns the index entry for the given skill name, or nil if not found.

func Search(entries []Entry, term string) []Entry

Search filters entries by term (case-insensitive) against name, description, author, and tags. Featured entries are returned before non-featured.

Jump to

Keyboard shortcuts

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