structutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StructTagRequired     = "required"
	StructTagMapstructure = "mapstructure"
	StructTagJson         = "json"
	StructTagYaml         = "yaml"
)

Variables

This section is empty.

Functions

func GetFieldTagValue

func GetFieldTagValue(structPointer any, fieldPointer any) string

GetFieldTagValue returns the value of the mapstructure field tag for a struct field.

func GetJsonFieldTagValue

func GetJsonFieldTagValue(structPointer any, fieldPointer any) string

GetJsonFieldTagValue returns the value of the json field tag for a struct field.

func GetYamlFieldTagValue

func GetYamlFieldTagValue(structPointer any, fieldPointer any) string

GetYamlFieldTagValue returns the value of the json field tag for a struct field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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