structs

package
v0.0.0-...-5905bd6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeys

func GetKeys(tag string, s any, parent string) []string

GetKeys returns a slice of tag values extracted from an initialized struct.

func HasJSONTag

func HasJSONTag(st any) bool

HasJSONTag ensures a struct has at least a JSON tag.

func InitializeFields

func InitializeFields(v reflect.Value, maxDepth int) reflect.Value

InitializeFields sets struct fields up to maxDepth.

Types

This section is empty.

Jump to

Keyboard shortcuts

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