etc

package
v0.0.0-...-c001fcf Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EarthRadius = 6371.0

Yer radiusi (kilometr)

Variables

This section is empty.

Functions

func CalculateDistance

func CalculateDistance(lat1, lon1, lat2, lon2 float64) float64

CalculateDistance - Ikkita koordinata orasidagi masofani hisoblash (km)

func GenerateNotificationEmailBody

func GenerateNotificationEmailBody(message string) (string, error)

func GenerateOTP

func GenerateOTP(length int) string

func GenerateOtpEmailBody

func GenerateOtpEmailBody(otp string) (string, error)

generateEmailBody generates the HTML email body for a student

func SendEmail

func SendEmail(smtpHost, smtpPort, from, password, to, body string) error

sendEmail sends an email using SMTP

Types

type Otp

type Otp struct {
	Code string
}

Jump to

Keyboard shortcuts

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