helper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BooleanHelper

func BooleanHelper(v bool) *bool

BooleanHelper ...

func ComparePassword

func ComparePassword(old string, new string) bool

ComparePassword verify password with bcrypt

func ConvertUint

func ConvertUint(i string) (uint, error)

ConvertUint ...

func Error

func Error(v ...interface{})

Error ...

func GeneratePassword

func GeneratePassword(password string) string

GeneratePassword generate password with bcrypt

func GenerateRandomDigitNumber

func GenerateRandomDigitNumber(max int) string

GenerateRandomDigitNumber ...

func GenerateRandomStringWithCharset

func GenerateRandomStringWithCharset(length int, charset string) string

GenerateRandomStringWithCharset ...

func GetLastSegment

func GetLastSegment(c *gin.Context) string

GetLastSegment ...

func GetSegment

func GetSegment(idx int, c *gin.Context) string

GetSegment ...

func Info

func Info(v ...interface{})

Info ...

func IntContains

func IntContains(s []int, x int) bool

IntContains ...

func Interface2Int64

func Interface2Int64(s interface{}) uint64

Interface2Int64 ...

func IsNilInterface

func IsNilInterface(i interface{}) bool

IsNilInterface ...

func IsSupportHTTPMethod added in v0.1.4

func IsSupportHTTPMethod(x string) bool

IsSupportHTTPMethod ...

func Panic

func Panic(v ...interface{})

Panic ...

func ReplaceDateFormat

func ReplaceDateFormat(s string, r string) string

ReplaceDateFormat ...

func String2Int64

func String2Int64(s string) uint64

String2Int64 helpful string convert to int64

func StringContains

func StringContains(s []string, x string) bool

StringContains ...

func Success

func Success(v ...interface{})

Success ...

func TimeHelper

func TimeHelper(v time.Time) *time.Time

TimeHelper ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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