specid

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 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")
)

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

type IDT

type IDT string
const (
	Artist IDT = "ar"
	Album  IDT = "al"
	Track  IDT = "tr"
)

Jump to

Keyboard shortcuts

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