api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAndExtract

func DownloadAndExtract(p Pack, destDir string) (bool, error)

DownloadAndExtract downloads a pack archive and extracts ANSI files to destDir. Returns true if the pack was downloaded, false if skipped (already exists).

Types

type Pack

type Pack struct {
	Year     int          `json:"year"`
	Name     flexString   `json:"name"`
	Download string       `json:"download"`
	Groups   []flexString `json:"groups"`
}

Pack represents an art pack from the API.

func FetchPacks

func FetchPacks(year int, group, pack string) ([]Pack, error)

FetchPacks retrieves all packs for a given year, applying optional filters.

Jump to

Keyboard shortcuts

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