tags

package
v0.0.0-...-c3ec36b Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst, src interface{})

Copy 转换对象值,对象字段名称相同并且类型相同时自动赋值相应字段 @param dst interface{} 目标对象 @param src interface{} 原始对象

func DbTag

func DbTag(tp reflect.Type) (map[string]string, string)

dbTag 解析对象数据库结构 @param tp reflect.Type 对象类型 @return map[string]string 对象数据库结构字段对照表 @return string 对象数据库主键字段名

func GetPtrInterface

func GetPtrInterface(v reflect.Value) interface{}

getPtrInterface 获取指针的原始对象

func IsEmpty

func IsEmpty(v reflect.Value) bool

判断值是否为空

func SetMapValue

func SetMapValue(obj interface{}, m map[string]interface{})

SetMapValue 设置对象值

Types

This section is empty.

Jump to

Keyboard shortcuts

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