tidbit

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package tidbit offeres hyperlinked historical information about the Scene releasers and groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID int

ID is the identifier of the tidbit.

func Find

func Find(uri string) []ID

Find returns the tidbit IDs for the given URI.

The ID returned can be used in a string conversion to get the description. The ID can also be used to get the URIs of the tidbit.

func (ID) Markdown added in v1.7.4

func (id ID) Markdown(fs embed.FS, dir string) []byte

Markdown returns the markdown content of the tidbit that is stored in the directory in the provided file system. If the file does not exist or is empty then nil is returned.

Generally the String method should be used to get the description of the tidbit instead of this Markdown method.

func (ID) String

func (id ID) String(fs embed.FS) string

String returns the tidbit description that is stored as a markdown file in the provided file system.

func (ID) URI

func (id ID) URI() []URI

URI returns the URIs of the tidbit.

func (ID) URL

func (id ID) URL(uri string) template.HTML

URL returns the HTML links of the tidbit but the provided URI is excluded.

type Tibits

type Tibits map[ID][]URI

Tibits is a map of tidbits mapped to their URIs.

func Groups added in v1.7.4

func Groups() Tibits

Groups returns the tidbit IDs and their matching URIs.

type Tidbit

type Tidbit map[ID]string

Tidbit is a map of tidbits mapped to their descriptions.

type URI

type URI string

URI is a the URL slug of the releaser.

Jump to

Keyboard shortcuts

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