enums

package
v0.0.0-...-fddd541 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MusicService

type MusicService uint

MusicService is an enumeration of music services that are allowed

ENUM( spotify deezer yandex )

const (
	// MusicServiceSpotify is a MusicService of type Spotify
	MusicServiceSpotify MusicService = iota
	// MusicServiceDeezer is a MusicService of type Deezer
	MusicServiceDeezer
	// MusicServiceYandex is a MusicService of type Yandex
	MusicServiceYandex
)

func ParseMusicService

func ParseMusicService(name string) (MusicService, error)

ParseMusicService attempts to convert a string to a MusicService

func (*MusicService) MarshalText

func (x *MusicService) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (MusicService) String

func (x MusicService) String() string

String implements the Stringer interface.

func (*MusicService) UnmarshalText

func (x *MusicService) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

Jump to

Keyboard shortcuts

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