Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 1.0
Version 1.0: Initialize CLI
Variables ¶
View Source
var HomeDirectory string
Functions ¶
func IsValidMP3Quality ¶
func IsValidMP4Quality ¶
func WriteConfigFile ¶
Write data of config to the configuration file
func WriteDefaultConfig ¶
func WriteDefaultConfig() error
Write default config into the configuration file
Types ¶
type Config ¶
type Config struct { Mp3Quality int64 `json:"mp3_quality"` Mp4Quality int64 `json:"mp4_quality"` Directory string `json:"directory"` }
func (*Config) CreateDownloadFolderIfNotExist ¶
func (cfg *Config) CreateDownloadFolderIfNotExist()
Make download directory if it not exist
func (*Config) GetDownloadFolder ¶
Get absolutely path of download folder
func (*Config) IsValidConfig ¶
Check valid data of the configuration after read successfully
Click to show internal directories.
Click to hide internal directories.