tidbit

package
v1.5.24 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

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) String

func (id ID) String() string

String returns the tidbit description.

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.

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