Documentation
¶
Index ¶
- Variables
- func CalculateDistance(latitude1, longitude1, latitude2, longitude2 float64) float64
- func CalculateEmissionDifference(distance float64) float64
- func ConvertPngToDataUri(path string) (string, error)
- func RandomPackageCode(length int) string
- func RandomString(length int) string
- func SendEmail(recipientEmails []string, subject string, body string) error
- func SetupLogger() *logrus.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = SetupLogger()
Functions ¶
func CalculateDistance ¶ added in v0.12.1
func CalculateEmissionDifference ¶ added in v0.12.1
func ConvertPngToDataUri ¶
func RandomPackageCode ¶ added in v0.13.3
Generate a random string (numbers) with the given length
func RandomString ¶
Generate a random string (letters + numbers) with the given length
func SetupLogger ¶ added in v0.13.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.