2019-06-17 09:48:05 +00:00
|
|
|
package parser
|
|
|
|
|
|
|
|
const (
|
|
|
|
// TagLabel allows to apply a custom behavior.
|
|
|
|
// - "allowEmpty": allows to create an empty struct.
|
|
|
|
// - "-": ignore the field.
|
|
|
|
TagLabel = "label"
|
|
|
|
|
|
|
|
// TagLabelSliceAsStruct allows to use a slice of struct by creating one entry into the slice.
|
|
|
|
// The value is the substitution name used in the label to access the slice.
|
|
|
|
TagLabelSliceAsStruct = "label-slice-as-struct"
|
|
|
|
|
|
|
|
// TagDescription is the documentation for the field.
|
2019-07-08 09:00:04 +00:00
|
|
|
// - "-": ignore the field.
|
2019-06-17 09:48:05 +00:00
|
|
|
TagDescription = "description"
|
|
|
|
|
|
|
|
// TagLabelAllowEmpty is related to TagLabel.
|
|
|
|
TagLabelAllowEmpty = "allowEmpty"
|
|
|
|
)
|