utilities

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MPL-2.0 Imports: 6 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 BoolPtr

func BoolPtr(b bool) *bool

Utility function to convert a bool to *bool

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 IsDebugMode

func IsDebugMode() bool

IsDebugMode checks if the M365_DEBUG_MODE environment variable is set to true

func StringPtr

func StringPtr(s string) *string

Utility function to convert a string to *string

func StringToInt

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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