tag

package
v1.20.111 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StructFields

func StructFields(value reflect.Value, tagName string) []reflect.StructField

func StructVal

func StructVal(s interface{}) reflect.Value

Types

type Tags

type Tags []string

Tags contains a slice of tag options

func Parse

func Parse(tag string) (string, Tags)

func (Tags) Has

func (t Tags) Has(opt string) bool

Has returns true if the given option is available in Tags

Jump to

Keyboard shortcuts

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