Documentation
¶
Index ¶
- func ContainsInSlice(s string, slice []string) bool
- func ContainsIntInSlice(s int, slice []int) bool
- func DecryptString(ciphertext string) (string, error)
- func EncryptString(text string) (string, error)
- func FindMaxInt(nums []int) (int, error)
- func IsValidEmail(email string) bool
- func SuggestService(toComplete string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInSlice ¶
ContainsInSlice checks if a string is present in a slice of strings.
func ContainsIntInSlice ¶
ContainsIntInSlice checks if a int is present in a slice of ints.
func DecryptString ¶
EncryptString does a simple Base64 decryption on a string One day I'll write a better encryption algorithm using AES
func EncryptString ¶
EncryptString does a simple Base64 encryption on a string One day I'll write a better encryption algorithm using AES
func FindMaxInt ¶
FindMaxInt returns the maximum integer in a slice of integers.
func IsValidEmail ¶
IsValidEmail returns true if the given string is a valid email address, and false otherwise. The function uses a built-in mail package to perform the validation.
func SuggestService ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.