utilities

package
v0.1.10-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Encode

func Base64Encode(input string) (string, error)

Base64Encode encodes the input string to base64.

func DownloadImage

func DownloadImage(url string) ([]byte, error)

DownloadImage downloads an image from a given URL and returns it as a byte slice with retries

func StringToInt

func StringToInt(str string, mapping map[string]int) (int, error)

StringToInt converts a string to an integer based on a provided map

func ToUpperCase

func ToUpperCase(s string) string

Helper function to convert a string to uppercase

Types

This section is empty.

Jump to

Keyboard shortcuts

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