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 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 InterfaceToInt(incomming interface{}) int
- 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 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 ExtractValue ¶
func FileExists ¶
func GetBaseDirectory ¶
func GetOnlyNumbers ¶
func HasOnlyNumbers ¶
func InterfaceToInt ¶ added in v0.4.1
func InterfaceToInt(incomming interface{}) int
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.