mreflect

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumpNaming

func HumpNaming(name string) string

func LoadFieldMapping

func LoadFieldMapping(_type reflect.Type, tagName string) map[string]string

func LoadFieldMappingByEntity

func LoadFieldMappingByEntity(entity any, tagName string) map[string]string

func LoadStructField added in v0.2.8

func LoadStructField(prefix string, t reflect.Type) []string

func LoadStructTag added in v0.2.8

func LoadStructTag(prefix string, tagName string, t reflect.Type) []string

func LoadTagMapping

func LoadTagMapping(_type reflect.Type, tagName string) map[string]string

func LoadTagMappingByEntity

func LoadTagMappingByEntity(entity any, tagName string) map[string]string

func RemoveHumpNaming

func RemoveHumpNaming(name string) string

func StructDBTagMap

func StructDBTagMap(entity any) map[string]any

func StructToMap

func StructToMap(entity any) map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

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