structtag

package
v0.0.0-...-d27f41a Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructField

type StructField struct {
	Tag   string
	Index int
	Tags  map[string]string
}

func GetFieldsByTag

func GetFieldsByTag(i interface{}, tag string) []*StructField

func NewStructField

func NewStructField(index int, tag string) *StructField

func (*StructField) Value

func (sf *StructField) Value(tag string) (v string, ok bool)

Jump to

Keyboard shortcuts

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