Documentation
¶
Index ¶
- Constants
- func AESDecrypt(encryptedString string) (decryptedString string, err error)
- func AESEncrypt(stringToEncrypt string) (encryptedString string, err error)
- func GetExtensions(filename string) string
- func SendMail(toEmail string, subject string, body string) error
- func UploadFile(file *multipart.FileHeader, path string) error
- type EmptyObj
- type Response
Constants ¶
View Source
const ( // The AES key should be a valid hexadecimal string. // For AES-256, it needs to be 32 bytes, which is 64 hexadecimal characters. // Removed the '!' character which was causing the encoding/hex error. KEY = "8e71bbce7451ba2835de5aea73e4f3f96821455240823d2fd8174975b8321bfc" )
View Source
const PATH = "assets"
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
func AESEncrypt ¶
func GetExtensions ¶
func UploadFile ¶
func UploadFile(file *multipart.FileHeader, path string) error
Types ¶
Click to show internal directories.
Click to hide internal directories.