utils

package
v0.13.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = SetupLogger()

Functions

func CalculateDistance added in v0.12.1

func CalculateDistance(latitude1, longitude1, latitude2, longitude2 float64) float64

func CalculateEmissionDifference added in v0.12.1

func CalculateEmissionDifference(distance float64) float64

func ConvertPngToDataUri

func ConvertPngToDataUri(path string) (string, error)

func RandomPackageCode added in v0.13.3

func RandomPackageCode(length int) string

Generate a random string (numbers) with the given length

func RandomString

func RandomString(length int) string

Generate a random string (letters + numbers) with the given length

func SendEmail

func SendEmail(recipientEmails []string, subject string, body string) error

func SetupLogger added in v0.13.0

func SetupLogger() *logrus.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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