helper

package
v0.0.0-...-67e09d5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(data []byte) string

func CheckTypeByStringValue

func CheckTypeByStringValue(val string, chkType string) bool

* helper functions using by base framework * @author: Vinaykant (vinaykantsahu@gmail.com)

func GenerateHashedPassword

func GenerateHashedPassword(pwd string) string

func IsCustomType

func IsCustomType(t types.Type) bool

func MapDbType

func MapDbType(typeExpr ast.Expr, length string) (string, string)

func ReadUserIP

func ReadUserIP(r *http.Request) string

func StringArrayContains

func StringArrayContains(arr []string, str string) bool

func ToBoolean

func ToBoolean(val string) bool

func ToByte

func ToByte(val string) []byte

func ToFloatVal32

func ToFloatVal32(val string) float32

func ToFloatVal64

func ToFloatVal64(val string) float64

func ToIntiger

func ToIntiger(val string) int

func ToIntiger16

func ToIntiger16(val string) int16

func ToIntiger32

func ToIntiger32(val string) int32

func ToIntiger64

func ToIntiger64(val string) int64

func ToIntiger8

func ToIntiger8(val string) int8

func ToRune

func ToRune(val string) rune

func ToUintiger

func ToUintiger(val string) uint

func ToUintiger16

func ToUintiger16(val string) uint16

func ToUintiger32

func ToUintiger32(val string) uint32

func ToUintiger64

func ToUintiger64(val string) uint64

func ToUintiger8

func ToUintiger8(val string) uint8

func ToUintptr

func ToUintptr(val string) uintptr

func VerifyHashedPassword

func VerifyHashedPassword(hash string, orgPwd string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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