utils

package
v0.0.0-...-e569850 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BooleanToString

func BooleanToString(value bool) string

func CalculateAge

func CalculateAge(birthDate primitive.DateTime) int

func Concat

func Concat(args ...string) string

func ConcatenateSpecialtiesLabels

func ConcatenateSpecialtiesLabels(specialties []models.Specialty) string

func ConnectDB

func ConnectDB() error

func ErrorResponse

func ErrorResponse(c *fiber.Ctx, statusCode int, message string) error

func GetCollection

func GetCollection(database, collection string) *mongo.Collection

func GetCurrentDateTime

func GetCurrentDateTime() string

func ParseDate

func ParseDate(date primitive.DateTime) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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