specid

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadSeparator = errors.New("bad separator")
	ErrNotAnInt     = errors.New("not an int")
	ErrBadPrefix    = errors.New("bad prefix")
	ErrBadJSON      = errors.New("bad JSON")
)

Functions

This section is empty.

Types

type ID

type ID struct {
	Type  IDT
	Value int
}

func New

func New(in string) (ID, error)

func (ID) MarshalJSON

func (i ID) MarshalJSON() ([]byte, error)

func (ID) MarshalText

func (i ID) MarshalText() ([]byte, error)

func (ID) String

func (i ID) String() string

func (*ID) UnmarshalJSON added in v0.15.0

func (i *ID) UnmarshalJSON(data []byte) error

type IDT

type IDT string
const (
	Artist               IDT = "ar"
	Album                IDT = "al"
	Track                IDT = "tr"
	Podcast              IDT = "pd"
	PodcastEpisode       IDT = "pe"
	InternetRadioStation IDT = "ir"
)

Jump to

Keyboard shortcuts

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