Documentation ¶
Index ¶
- Constants
- func AtoI(value string, def int) int
- func AtoI16(value string, def int16) int16
- func AtoI32(value string, def int32) int32
- func AtoI64(value string, def int64) int64
- func AtoI8(value string, def int8) int8
- func AtoUI(value string, def uint) uint
- func AtoUI16(value string, def uint16) uint16
- func AtoUI32(value string, def uint32) uint32
- func AtoUI64(value string, def uint64) uint64
- func AtoUI8(value string, def uint8) uint8
- func GenerateRandomPassword(lenPass int) string
- func GetMapKeys(mapa map[string]any) []string
- func Getenv(key, def string) string
- func HashPassword(pass string) (string, error)
- func I16ToA(value int16) string
- func I32ToA(value int32) string
- func I64ToA(value int64) string
- func I8ToA(value int8) string
- func IToA(value int) string
- func UI16ToA(value uint16) string
- func UI32ToA(value uint32) string
- func UI64ToA(value uint64) string
- func UI8ToA(value uint8) string
- func UIToA(value uint) string
- func ValidatePassword(hash, pass string) bool
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorError = "\033[31m" ColorWarning = "\033[33m" ColorNotice = "\033[34m" ColorDebug = "\033[35m" ColorSuccess = "\033[32m" )
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomPassword ¶
GenerateRandomPassword генерация случайной строки указанной длинны
func GetMapKeys ¶
func HashPassword ¶
HashPassword создание хэша для указанного пароля
func ValidatePassword ¶
ValidatePassword сравнение переданного пароля с хэшем
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.