util

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIp

func GetClientIp() string

GetClientIp ...

func Guid

func Guid() string

Guid ...

func InArray

func InArray(elem interface{}, target interface{}) bool

InArray ...

func IsArray

func IsArray(elem interface{}) bool

IsArray ...

func IsBool

func IsBool(elem interface{}) bool

IsBool ...

func IsChannel

func IsChannel(elem interface{}) bool

IsChannel ...

func IsEmpty

func IsEmpty(elem interface{}) bool

IsEmpty ...

func IsFloat

func IsFloat(elem interface{}) bool

IsFloat ...

func IsFunc

func IsFunc(elem interface{}) bool

IsFunc ...

func IsInt

func IsInt(elem interface{}) bool

IsInt ...

func IsJson

func IsJson(str string) bool

IsJson ...

func IsMap

func IsMap(elem interface{}) bool

IsMap ...

func IsNumeric

func IsNumeric(elem interface{}) bool

IsNumeric ...

func IsSlice

func IsSlice(elem interface{}) bool

IsSlice ...

func IsString

func IsString(elem interface{}) bool

IsString ...

func IsStruct

func IsStruct(elem interface{}) bool

IsStruct ...

func IsTime added in v0.0.3

func IsTime(elem interface{}) bool

IsTime ...

func IsUint

func IsUint(elem interface{}) bool

IsUint ...

func Md5

func Md5(str string) string

Md5 ...

func Rand

func Rand(min, max int) int

Rand ...

func RandString added in v0.0.6

func RandString(length int) string

RandString ...

func Range added in v0.0.3

func Range(min, max int) []int

Range ...

func ToBool

func ToBool(elem interface{}) bool

ToBool ...

func ToCamelCase

func ToCamelCase(str string) string

ToCamelCase ...

func ToSnakeCase

func ToSnakeCase(str string) string

ToSnakeCase ...

func ToString

func ToString(elem interface{}) string

ToString ...

func ToStruct added in v0.0.6

func ToStruct(from, to interface{}) error

ToStruct ...

func ToUint added in v0.0.5

func ToUint(elem interface{}) uint64

ToUint ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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