utils

package
v0.0.0-...-c6b27bc Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlbumColour

func GetAlbumColour(album spotify.SimpleAlbum) (colorstring string, colorVal color.RGBA)

Gets the prominent colour from an album cover

func InitViper

func InitViper() error

Set Viper config defaults

func Spin

func Spin(s *string, completed string, done chan bool)

func WriteSecrets

func WriteSecrets(sc Secrets) (err error)

Write secrets to disk.

Types

type Secrets

type Secrets struct {
	ClientID     string `yaml:"clientid"`
	ClientSecret string `yaml:"clientsecret"`
	RefreshToken string `yaml:"refreshtoken"`
}

func GetSecrets

func GetSecrets() (*Secrets, error)

Fetch secrets from config paths

Jump to

Keyboard shortcuts

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