mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-08 12:36:58 +01:00
19 lines
312 B
Go
19 lines
312 B
Go
package lib
|
|
|
|
import "errors"
|
|
|
|
type AvailableServices int
|
|
|
|
const (
|
|
AvailableServicesTidal = iota
|
|
)
|
|
|
|
func ParseAvailableServices(service string) (AvailableServices, error) {
|
|
switch service {
|
|
case "tidal":
|
|
return AvailableServicesTidal, nil
|
|
}
|
|
return AvailableServicesTidal, errors.New("Invalid service.")
|
|
}
|
|
|