structx

package
v0.0.0-...-99215c7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyContent

func CopyContent(master interface{}, second interface{}) (m map[string]interface{})

func GetStructFieldNames

func GetStructFieldNames(p interface{}, fields ...string) []string

通过json tag获取字段名称

func JsonToStr

func JsonToStr(i interface{}) string

对象转JSON字符串

func RequestSpaceTrim

func RequestSpaceTrim(obj interface{}) (_err error)

删除字符串字段两边的空格

func RequestVerify

func RequestVerify(content interface{}, force ...string) (_err error)

func RequestVerifyOr

func RequestVerifyOr(content interface{}, force ...string) (_err error)

func SetField

func SetField(obj interface{}, name string, value interface{}) error

func ShortContent

func ShortContent(content interface{}, force ...string) (m map[string]interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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