gear

package
v0.0.0-...-58e3b6f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 AtoI

func AtoI(value string, def int) int

func AtoI16

func AtoI16(value string, def int16) int16

func AtoI32

func AtoI32(value string, def int32) int32

func AtoI64

func AtoI64(value string, def int64) int64

func AtoI8

func AtoI8(value string, def int8) int8

func AtoUI

func AtoUI(value string, def uint) uint

func AtoUI16

func AtoUI16(value string, def uint16) uint16

func AtoUI32

func AtoUI32(value string, def uint32) uint32

func AtoUI64

func AtoUI64(value string, def uint64) uint64

func AtoUI8

func AtoUI8(value string, def uint8) uint8

func GenerateRandomPassword

func GenerateRandomPassword(lenPass int) string

GenerateRandomPassword генерация случайной строки указанной длинны

func GetMapKeys

func GetMapKeys(mapa map[string]any) []string

func Getenv

func Getenv(key, def string) string

func HashPassword

func HashPassword(pass string) (string, error)

HashPassword создание хэша для указанного пароля

func I16ToA

func I16ToA(value int16) string

func I32ToA

func I32ToA(value int32) string

func I64ToA

func I64ToA(value int64) string

func I8ToA

func I8ToA(value int8) string

func IToA

func IToA(value int) string

func UI16ToA

func UI16ToA(value uint16) string

func UI32ToA

func UI32ToA(value uint32) string

func UI64ToA

func UI64ToA(value uint64) string

func UI8ToA

func UI8ToA(value uint8) string

func UIToA

func UIToA(value uint) string

func ValidatePassword

func ValidatePassword(hash, pass string) bool

ValidatePassword сравнение переданного пароля с хэшем

Types

This section is empty.

Jump to

Keyboard shortcuts

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