Documentation
¶
Overview ¶
Enum of currency that support in apps
Index ¶
- Constants
- func CheckCurrencySupport(currency string) bool
- func CheckPassword(password string, hashedPassword string) error
- func HashPassword(password string) (string, error)
- func LoadConfig(path string) (cf config, err error)
- func RandomCurrency() string
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomMoney() int64
- func RandomOwner() string
- func RandomString(n int) string
Constants ¶
View Source
const ( USD = "USD" EUR = "EUR" CAD = "CAD" IDR = "IDR" )
add your new enum here
Variables ¶
This section is empty.
Functions ¶
func CheckCurrencySupport ¶ added in v0.7.1
CheckCurrencySupport consume string returning true when currency is supported
func CheckPassword ¶ added in v0.7.4
CheckPassword checks if the provided password is correct or not
func HashPassword ¶ added in v0.7.4
HashPassword returns the bcrypt hash of the password
func LoadConfig ¶ added in v0.6.0
LoadConfig load configfile and returning config struct
func RandomString ¶
RandomString generates a random string of length n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.