helpers

package
v0.0.0-...-39a5570 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorStyle = lipgloss.NewStyle().
	Foreground(lipgloss.AdaptiveColor{Light: "#FF0000", Dark: "#FF0000"})
View Source
var SuccessStyle = lipgloss.NewStyle().
	Foreground(lipgloss.AdaptiveColor{Light: "#00FF00", Dark: "#00FF00"})
View Source
var TitleStyle = lipgloss.NewStyle().
	Background(lipgloss.Color("253")).
	Foreground(lipgloss.AdaptiveColor{Light: "#251a18", Dark: "#251a18"}).
	Bold(true)
View Source
var WarningStyle = lipgloss.NewStyle().
	Foreground(lipgloss.AdaptiveColor{Light: "#FFA500", Dark: "#FFA500"})

Functions

func DownloadFile

func DownloadFile(cfg config.Config, filepath string, url *url.URL) error

func GenerateUUID

func GenerateUUID() (string, error)

func GetRequest

func GetRequest(url *url.URL, headers *http.Header) ([]byte, error)

func IsValidUUID

func IsValidUUID(u string) bool

func MergeHeaders

func MergeHeaders(h1, h2 http.Header) http.Header

func PostRequest

func PostRequest(url *url.URL, headers *http.Header, data map[string]interface{}) ([]byte, error)

func PrepareComicInfo

func PrepareComicInfo(albumInfo types.Album) (types.ComicInfo, error)

func SanitizeName

func SanitizeName(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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