utils

package
v0.0.0-...-d9ca063 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHash         = errors.New("the encoded hash is not in the correct format")
	ErrIncompatibleVersion = errors.New("incompatible version of argon2")
)

Functions

func ComparePasswordAndHash

func ComparePasswordAndHash(password, encodedHash string) (match bool, err error)

func EncodePassword

func EncodePassword(password string) (string, error)

func FullTextCreate

func FullTextCreate(filter string) []string

func FullTextTest

func FullTextTest(filter []string, a string) bool

func IsEmail

func IsEmail(email string) bool

func JsonPrint

func JsonPrint(o interface{})

func LogErr

func LogErr(err error)

func PanicErr

func PanicErr(err error)

func RandomCode

func RandomCode() string

func RemoveDiacritics

func RemoveDiacritics(s string) string

func UUID

func UUID() (uuid string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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