utils

package
v1.4.6-fix-dependencie... Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDepth = 32

Variables

This section is empty.

Functions

func ComparePasswordHash

func ComparePasswordHash(password string, hash string) (bool, error)

func CurlyBraceReplaceStrings added in v1.0.5

func CurlyBraceReplaceStrings(original string, replace map[string]string) string

func GeneratePassword

func GeneratePassword() (string, error)

func GeneratePasswordHash

func GeneratePasswordHash(password string) (string, error)

func LocalizeSimple added in v1.0.5

func LocalizeSimple(localizer *i18n.Localizer, id string) string

func LocalizeWithInterperlate added in v1.0.5

func LocalizeWithInterperlate(localizer *i18n.Localizer, id string, replace map[string]string) string

func ReplaceMergeMap

func ReplaceMergeMap(dst, src map[string]interface{}) error

func ReplaceStrings added in v1.0.5

func ReplaceStrings(original string, replace map[string]string) string

Types

type PasswordHashSet

type PasswordHashSet struct {
	Hash     string `json:"hash"`
	Password string `json:"password"`
}

func GeneratePasswordHashSet

func GeneratePasswordHashSet(secret *string) (*PasswordHashSet, error)

Jump to

Keyboard shortcuts

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