artdb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListCategories

func ListCategories() []string

ListCategories returns unique categories

Types

type Art

type Art struct {
	Name     string
	Category string
	Artist   string
	Art      string
	Tags     []string
}

Art represents a piece of ASCII art

func ByCategory

func ByCategory(category string) []Art

ByCategory returns all art in a category

func Get

func Get(name string) (Art, bool)

Get returns art by name

func List

func List() []Art

List returns all art in the database

func Random

func Random() Art

Random returns a random piece of art

func Search(query string) []Art

Search searches art by name, category, or tags

Jump to

Keyboard shortcuts

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