Documentation
¶
Index ¶
- Constants
- func Decrypt(encText string, blockKey string, iv string) ([]byte, error)
- func Encrypt(clearBuf []byte, blockKey string, iv string) (string, error)
- func ExtractHashtags(s string) []string
- func ExtractMentions(s string) []string
- func GenerateHash(s string, salt string, hk string, p string, length int) (string, error)
- func GenerateHashAndSalt(s string, hk string, p string, length int) (string, string, error)
- func GenerateRandomHex(length int) (string, error)
- func GenerateSimpleHash(s string, length int) (string, error)
- func GenerateToken(key string, length int) (string, error)
- func HelloWorld()
- func IsValidEmail(email string) bool
- func ParseNameFromEmail(email string) (string, error)
Constants ¶
View Source
const ( AT_SYMBOL = "@" SPACE_SYMBOL = " " EMAIL_REGEXP = "([\\w-.+]+)@([\\w-.]+)" )
View Source
const ( HASHTAG_POUND = "#" HASHTAG_MAX_LENGTH = 33 )
View Source
const ( HASHTAG_REGEXP = "#[a-z0-9]{1,32}" HASHTAG_INVALID = "+,?-_.@$%^&*#!" )
View Source
const ( MENTION_AT = "@" USERNAME_MAX_LENGTH = 25 )
View Source
const ( USERNAME_REGEXP = "@[a-z][a-z0-9_]{1,23}" USERNAME_INVALID = "+,?-.@$%^&*#!" )
View Source
const ( APP_NAME = "webtools" APP_VERSION = "1.0" )
View Source
const ( ERR_BLOCK_IV_LENGTH_MISMATCH = "Block key and IV length mismatch" ERR_EMPTY_BLOCK_IV = "Block key or IV is empty" ERR_EMPTY_TEXT = "Text empty" )
View Source
const (
STR_EMPTY = ""
)
Variables ¶
This section is empty.
Functions ¶
func ExtractHashtags ¶
func ExtractMentions ¶
func GenerateHash ¶
func GenerateHashAndSalt ¶
func GenerateRandomHex ¶
func HelloWorld ¶
func HelloWorld()
func IsValidEmail ¶
func ParseNameFromEmail ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.