utils

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(camel string) string

func ContainString

func ContainString(src []string, tag string) bool

func ConvertPointer

func ConvertPointer(t reflect.Type) reflect.Type

func IsFunc

func IsFunc(i interface{}) bool

func IsNilPointer

func IsNilPointer(i interface{}) bool

func PasswordEncode

func PasswordEncode(password string) string

func RemoveTypePtr

func RemoveTypePtr(t reflect.Type) reflect.Type

func RemoveValuePtr

func RemoveValuePtr(v reflect.Value) reflect.Value

func SnakeToCamel

func SnakeToCamel(snake string) string

func StructToMap

func StructToMap(in interface{}, omits ...string) (map[string]interface{}, error)

StructToMap 将一个结构体转换为

func UUID

func UUID() string

func Verify

func Verify(plaintext, encrypt string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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