util

package
v0.0.0-...-2877753 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EGP = "EGP"
	USD = "USD"
	RUB = "RUB"
)

Variables

This section is empty.

Functions

func CheckHashedPassword

func CheckHashedPassword(hashPassword, password string) error

func GenerateHashPassword

func GenerateHashPassword(password string) (string, error)

func IsSupportedCurrency

func IsSupportedCurrency(currency string) bool

func RandomCurrency

func RandomCurrency() string

func RandomEmail

func RandomEmail() string

func RandomInteger

func RandomInteger(min, max int64) int64

Creates a random integer from min to max

func RandomMoney

func RandomMoney() int64

func RandomOwner

func RandomOwner() string

func RandomString

func RandomString(n int) string

func RandomUsername

func RandomUsername() string

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) Get

func (c *Config) Get(key string) (result string)

Get returns the value of the key if the key is not found in the map, it checks if the key_FILE exists then it checks if the key itself is set from env otherwise it returns an empty string

func (*Config) Set

func (c *Config) Set(key, value string)

Jump to

Keyboard shortcuts

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