utils

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrInt64ToString

func ArrInt64ToString(arr []int64) (result string, err error)

func ArrInt64ToStringMust

func ArrInt64ToStringMust(arr []int64) (result string)

func ArrIntToString

func ArrIntToString(arr []int) (result string, err error)

func ArrIntToStringMust

func ArrIntToStringMust(arr []int) (result string)

func ArrStringsToString

func ArrStringsToString(arr []string) (result string, err error)

func ArrStringsToStringMust

func ArrStringsToStringMust(arr []string) (result string)

func AuthSessionMidd

func AuthSessionMidd(c *gin.Context)

func CORS

func CORS() gin.HandlerFunc

func ConverIntStringToList

func ConverIntStringToList(eid string) (result string)

func GenerateUUID

func GenerateUUID() string

func GetValue

func GetValue(maplist []map[string]interface{}, key string) (result []interface{})

func HasDangerousCharacters

func HasDangerousCharacters(str string) bool

func HashIt

func HashIt(passwd string) (hashed string)

func IsUsernameValid

func IsUsernameValid(name string) bool

func MapTake

func MapTake(list []interface{}, limit int) []interface{}

func UniqSet

func UniqSet(list []interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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