Documentation ¶
Index ¶
- Variables
- func BoolDeref(ptr *bool, def bool) bool
- func BoolPtr(b bool) *bool
- func BoolPtrEqual(a, b *bool) bool
- func Bytes2Str(b []byte) string
- func CompareBcryptHashAndPassword(hashedPassword, password string) error
- func DefiniteFloat64(value interface{}) float64
- func DefiniteInt(value interface{}) int
- func DefiniteInt64(value interface{}) int64
- func DefiniteString(value interface{}) string
- func Duration(d time.Duration) *time.Duration
- func DurationDeref(ptr *time.Duration, def time.Duration) time.Duration
- func DurationPtrEqual(a, b *time.Duration) bool
- func Explode(delimiter, text string) []string
- func Float32Deref(ptr *float32, def float32) float32
- func Float32Ptr(f float32) *float32
- func Float32PtrEqual(a, b *float32) bool
- func Float64Deref(ptr *float64, def float64) float64
- func Float64Ptr(f float64) *float64
- func Float64PtrEqual(a, b *float64) bool
- func GenerateBcryptFromPassword(password string) (string, error)
- func Implode(glue string, pieces []string) string
- func InArray(needle interface{}, hystack interface{}) bool
- func Int16Deref(ptr *int16, def int16) int16
- func Int16Ptr(i int16) *int16
- func Int16PtrEqual(a, b *int16) bool
- func Int32Deref(ptr *int32, def int32) int32
- func Int32Ptr(i int32) *int32
- func Int32PtrEqual(a, b *int32) bool
- func Int64ArrayUnique(arr []int64) []int64
- func Int64Deref(ptr *int64, def int64) int64
- func Int64Ptr(i int64) *int64
- func Int64PtrEqual(a, b *int64) bool
- func Int64sToStrings(ints []int64) []string
- func Int8Deref(ptr *int8, def int8) int8
- func Int8Ptr(i int8) *int8
- func Int8PtrEqual(a, b *int8) bool
- func IntArrayUnique(arr []int) []int
- func IntDeref(ptr *int, def int) int
- func IntPtr(i int) *int
- func IntPtrEqual(a, b *int) bool
- func IntsToStrings(ints []int) []string
- func MD5(str string) string
- func PasswordHash(password string) string
- func PasswordVerify(password, hash string) bool
- func Str2Bytes(s string) []byte
- func StrPadLeft(input string, padLength int, padString string) string
- func StringArrayDiff(array1 []string, arrayOthers ...[]string) []string
- func StringArrayUnique(arr []string) []string
- func StringDeref(ptr *string, def string) string
- func StringPtr(s string) *string
- func StringPtrEqual(a, b *string) bool
- func StringsToInt64s(ss []string) []int64
- func StringsToInts(ss []string) []int
- func ToFloat64(value interface{}) (float64, error)
- func ToInt(value interface{}) (int, error)
- func ToInt64(value interface{}) (int64, error)
- func ToString(value interface{}) (string, error)
- func Uint16Deref(ptr *uint16, def uint16) uint16
- func Uint16Ptr(i uint16) *uint16
- func Uint16PtrEqual(a, b *uint16) bool
- func Uint32Deref(ptr *uint32, def uint32) uint32
- func Uint32Ptr(i uint32) *uint32
- func Uint32PtrEqual(a, b *uint32) bool
- func Uint64Deref(ptr *uint64, def uint64) uint64
- func Uint64Ptr(i uint64) *uint64
- func Uint64PtrEqual(a, b *uint64) bool
- func Uint8Deref(ptr *uint8, def uint8) uint8
- func Uint8Ptr(i uint8) *uint8
- func Uint8PtrEqual(a, b *uint8) bool
- func UintDeref(ptr *uint, def uint) uint
- func UintPtr(i uint) *uint
- func UintPtrEqual(a, b *uint) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConvertType = errors.New("convert type err")
View Source
var ErrMismatchedHashAndPassword = bcrypt.ErrMismatchedHashAndPassword
Functions ¶
func BoolPtrEqual ¶
func DefiniteFloat64 ¶
func DefiniteFloat64(value interface{}) float64
func DefiniteInt ¶
func DefiniteInt(value interface{}) int
func DefiniteInt64 ¶
func DefiniteInt64(value interface{}) int64
func DefiniteString ¶
func DefiniteString(value interface{}) string
func DurationPtrEqual ¶
func Float32Deref ¶
func Float32Ptr ¶
func Float32PtrEqual ¶
func Float64Deref ¶
func Float64Ptr ¶
func Float64PtrEqual ¶
func Int16Deref ¶
func Int16PtrEqual ¶
func Int32Deref ¶
func Int32PtrEqual ¶
func Int64ArrayUnique ¶
func Int64Deref ¶
func Int64PtrEqual ¶
func Int64sToStrings ¶
func Int8PtrEqual ¶
func IntArrayUnique ¶
func IntPtrEqual ¶
func IntsToStrings ¶
func PasswordHash ¶
func PasswordVerify ¶
func StringArrayDiff ¶
func StringArrayUnique ¶
func StringDeref ¶
func StringPtrEqual ¶
func StringsToInt64s ¶
func StringsToInts ¶
func Uint16Deref ¶
func Uint16PtrEqual ¶
func Uint32Deref ¶
func Uint32PtrEqual ¶
func Uint64Deref ¶
func Uint64PtrEqual ¶
func Uint8Deref ¶
func Uint8PtrEqual ¶
func UintPtrEqual ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.