util

package
v0.0.0-...-e7eca26 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTilde

func ExpandTilde(path string) (string, error)

func ExtractExtensionFromURL

func ExtractExtensionFromURL(rawURL string) (string, error)

func FileExistsAndMatches

func FileExistsAndMatches(filepath string, expectedSize int) bool

FileExistsAndMatches checks if a file exists and matches a given size.

func GenerateFolderName

func GenerateFolderName(childName string, date string, albumID int, albumTitle string) (string, error)

func ParseFrontmatter

func ParseFrontmatter(content string) (string, string, error)

ParseFrontmatter returns title and date strings for the album given input string containing frontmatter

func RetryWithBackoff

func RetryWithBackoff(ctx context.Context, operation func() error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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