utils

package
v0.0.0-...-2727cdd Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = 1024
	MB = 1024 * KB
	GB = 1024 * MB
	TB = 1024 * GB
	PB = 1024 * TB
)

Variables

This section is empty.

Functions

func HumanByte

func HumanByte(bf interface{}) string

func InArrStr

func InArrStr(arr []string, str string) bool

func PasswordHash

func PasswordHash(password string) (string, error)

func PasswordVerify

func PasswordVerify(password, hash string) bool

func RandSecret

func RandSecret(min int, max int) (string, error)

func RandomRunes

func RandomRunes(length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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