Documentation ¶
Index ¶
- func CheckPassword(password string, hashedPassword string) error
- func HashPassword(password string) (string, error)
- func RandomAge() int32
- func RandomAmount() int64
- func RandomBalance() int64
- func RandomCalories() float32
- func RandomEmail() string
- func RandomExpense() int64
- func RandomFoodName() string
- func RandomID() int64
- func RandomIPAddress() string
- func RandomInt(min, max int64) int64
- func RandomNutrient() float32
- func RandomPassword() string
- func RandomStoreName() string
- func RandomString(n int) string
- func RandomUserName() string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
ハッシュ化されたパスワードと生のパスワードが等しいものかをチェックする。
func HashPassword ¶
bcryptを使ってハッシュ化されたパスワードを取得する。
Types ¶
Click to show internal directories.
Click to hide internal directories.