gtbox_reflect

package
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package gtbox_reflect 反射方法工具库

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFieldIndex added in v0.0.93

func GetFieldIndex(customModel interface{}, fieldName string) (int, error)

GetFieldIndex 获取给定字段名在结构体中的索引

func GetFieldNameAtIndex added in v0.0.92

func GetFieldNameAtIndex(customModel interface{}, index int) (string, error)

GetFieldNameAtIndex 获取指定索引位置的--字段名

func GetFieldValueAtIndex added in v0.0.92

func GetFieldValueAtIndex(customModel interface{}, index int) (interface{}, error)

GetFieldValueAtIndex 获取指定索引位置的字段--Value值

func GetNumberOfFieldWithModel

func GetNumberOfFieldWithModel(customModel interface{}) int

GetNumberOfFieldWithModel 获取Model的字段数量支持指针、非指针传入

Types

This section is empty.

Jump to

Keyboard shortcuts

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