Documentation ¶
Index ¶
- Constants
- func ByteToMapInterface(bytes []byte) map[string]interface{}
- func ByteToStruct(raw []byte, result interface{}) error
- func CompleteWithZeros(str string, length int) string
- func EnhanceSentryEvent(handler http.HandlerFunc) http.HandlerFunc
- func ExtractValue(key string, jwt string) (interface{}, error)
- func FileExists(path string) bool
- func GetBaseDirectory(directory string) string
- func GetOnlyNumbers(str string) string
- func HasOnlyNumbers(str string) bool
- func Hash256(s string) string
- func Hash256FromBytes(b []byte) string
- func IntToString(in int) string
- func InterfaceToInt(incomming interface{}) int
- func MD5(filePath string) (string, error)
- func ManageError(err error) error
- func MapInterfaceToBytes(data map[string]interface{}) []byte
- func MapStringToMapInterface(data map[string]string) map[string]interface{}
- func StringToInt(in string) int
- func StructToMapInterface(data interface{}) (map[string]interface{}, error)
- func ValidateCPF(cpf string) bool
- func ValidateCellphoneNumber(phoneNumber string) error
- func ValidateDDD(ddd string) bool
- func ValidateEmail(email string) bool
- func ValidateLandlineNumber(phoneNumber string) error
- func ValidatePhoneNumber(phoneNumber string) bool
- func ValidateTimestamp(timestamp string) bool
- func ValidateURL(link string) bool
- func ValidateUUID(subject string) bool
- func WhatsappNumberToBrazilianPhonenumber(in string) string
- type JwtServer
- type JwtServerInterface
Constants ¶
View Source
const ( TEST_CPF = "00000000191" TEST_TOKEN = "123456" // formas de envio de mensagem SEND_MEDIA_SMS = 1 SEND_MEDIA_EMAIL = 2 SEND_MEDIA_WHATSAPP = 3 PHONENUMBER_MAX_LENGTH = 9 PHONENUMBER_MIN_LENGTH = 8 FULL_PHONENUMBER_LENGTH = 13 WHATSAPP_PHONENUMBER_LENGTH = 12 VALID_EMAIL_REGEX = "" /* 135-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func ByteToMapInterface ¶
func ByteToStruct ¶ added in v0.7.0
func CompleteWithZeros ¶
func EnhanceSentryEvent ¶ added in v0.7.10
func EnhanceSentryEvent(handler http.HandlerFunc) http.HandlerFunc
func ExtractValue ¶
func FileExists ¶
func GetBaseDirectory ¶
func GetOnlyNumbers ¶
func HasOnlyNumbers ¶
func Hash256FromBytes ¶ added in v0.7.11
func IntToString ¶ added in v0.7.13
func InterfaceToInt ¶ added in v0.4.1
func InterfaceToInt(incomming interface{}) int
func ManageError ¶ added in v0.7.9
func MapInterfaceToBytes ¶
func MapStringToMapInterface ¶
func StringToInt ¶ added in v0.4.1
func StructToMapInterface ¶ added in v0.5.0
func ValidateCPF ¶
func ValidateCellphoneNumber ¶
func ValidateDDD ¶
func ValidateEmail ¶
func ValidateLandlineNumber ¶
func ValidatePhoneNumber ¶
func ValidateTimestamp ¶
func ValidateURL ¶ added in v0.5.0
func ValidateUUID ¶
func WhatsappNumberToBrazilianPhonenumber ¶ added in v0.7.1
Types ¶
Click to show internal directories.
Click to hide internal directories.