Documentation
¶
Index ¶
- func CheckURLFileSize(url string, timeout *time.Duration) (int64, error)
- func ConvertToQueryParams(params map[string]interface{}) map[string]string
- func GetNestedValue(data map[string]interface{}, key string) (interface{}, bool)
- func SanitizeFileName(name string) string
- func SaveLayout(props SaveLayoutProps) string
- type SaveLayoutProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckURLFileSize ¶
CheckURLFileSize performs a HEAD request to check the availability of a URL and returns the content length if available. The timeout parameter is optional; if nil, it defaults to 10 seconds.
func ConvertToQueryParams ¶
ConvertToQueryParams converts map[string]interface{} to map[string]string
func GetNestedValue ¶
GetNestedValue retrieves a value from a nested map given a dot-separated key.
func SanitizeFileName ¶
SanitizeFileName replaces characters that are not allowed in file names.
func SaveLayout ¶
func SaveLayout(props SaveLayoutProps) string
SaveLayout formats the file path using placeholders and metadata from the track and album.
Types ¶
Click to show internal directories.
Click to hide internal directories.