tags

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldTagMap

type FieldTagMap = map[string]StructTagMap

FieldTagMap contains all the parsed tags for a struct.

func GetStructTagMap

func GetStructTagMap(q interface{}) FieldTagMap

GetStructTagMap returns Struct tags.

type StructTagMap

type StructTagMap struct {
	Csv       string
	Validator string
	Min       float64
	Max       float64
	Required  bool
	Index     int
}

StructTagMap contains the parsed tag values for a single attribute.

Jump to

Keyboard shortcuts

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