helpers

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsInSlice

func ContainsInSlice(s string, slice []string) bool

ContainsInSlice checks if a string is present in a slice of strings.

func ContainsIntInSlice

func ContainsIntInSlice(s int, slice []int) bool

ContainsIntInSlice checks if a int is present in a slice of ints.

func DecryptString

func DecryptString(ciphertext string) (string, error)

EncryptString does a simple Base64 decryption on a string One day I'll write a better encryption algorithm using AES

func EncryptString

func EncryptString(text string) (string, error)

EncryptString does a simple Base64 encryption on a string One day I'll write a better encryption algorithm using AES

func FindMaxInt

func FindMaxInt(nums []int) (int, error)

FindMaxInt returns the maximum integer in a slice of integers.

func IsValidEmail

func IsValidEmail(email string) bool

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

func SuggestService(toComplete string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL