utils

package
v0.0.0-...-3956df7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToString

func ByteToString(value []byte) string

func DecodeBase64

func DecodeBase64(value string) (string, error)

DecodeBase64 returns a decoded string from base64

func EncodeBase64

func EncodeBase64(value string) string

EncodeBase64 returns a encoded string to base64

func GenerateRandomString

func GenerateRandomString(size int) string

GenerateRandomString generate a random string based on a given size

func HashAndSalt

func HashAndSalt(password string) (string, error)

func IsValidIPAddress

func IsValidIPAddress(s string) bool

func IsValidURL

func IsValidURL(s string) bool

func NormalizeString

func NormalizeString(s string) (string, error)

func ParseCheckboxBoolean

func ParseCheckboxBoolean(value string) bool

func PasswordsMatch

func PasswordsMatch(hashed, plain string) bool

func StringIsNumber

func StringIsNumber(s string) bool

func StringToByte

func StringToByte(value string) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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