utils

package
v0.0.0-...-ef65ee7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidAreaCodes = map[string]bool{
	"11": true, "12": true, "13": true, "14": true, "15": true, "16": true, "17": true, "18": true, "19": true,
	"21": true, "22": true, "24": true, "27": true, "28": true, "31": true, "32": true, "33": true, "34": true,
	"35": true, "37": true, "38": true, "41": true, "42": true, "43": true, "44": true, "45": true, "46": true,
	"47": true, "48": true, "49": true, "51": true, "53": true, "54": true, "55": true, "61": true, "62": true,
	"63": true, "64": true, "65": true, "66": true, "67": true, "68": true, "69": true, "71": true, "73": true,
	"74": true, "75": true, "77": true, "79": true, "81": true, "82": true, "83": true, "84": true, "85": true,
	"86": true, "87": true, "88": true, "89": true, "91": true, "92": true, "93": true, "94": true, "95": true,
	"96": true, "97": true, "98": true, "99": true,
}

Functions

func AdjustToSaoPaulo

func AdjustToSaoPaulo(t *timestamppb.Timestamp) *timestamppb.Timestamp

func ConvertToObjectId

func ConvertToObjectId(userId string) (primitive.ObjectID, error)

func GetCurrentTimestamp

func GetCurrentTimestamp() *timestamppb.Timestamp

func IsValidAreaCode

func IsValidAreaCode(areaCode string) bool

func ReadjustToSaoPaulo

func ReadjustToSaoPaulo(t time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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