File: tags.go

package info (click to toggle)
golang-github-traefik-paerser 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 612 kB
  • sloc: makefile: 14
file content (26 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package parser

const (
	// TagLabel allows to apply a custom behavior.
	// - "allowEmpty": allows the creation of a type that is supposed to have children
	// (i.e: struct, pointer of struct, and map), without any children.
	// - "-": ignore the field.
	TagLabel = "label"

	// TagFile allows to apply a custom behavior.
	// - "allowEmpty": allows the creation of a type that is supposed to have children
	// (i.e: struct, pointer of struct, and map), without any children.
	// - "-": ignore the field.
	TagFile = "file"

	// 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.
	// - "-": ignore the field.
	TagDescription = "description"

	// TagLabelAllowEmpty is related to TagLabel.
	TagLabelAllowEmpty = "allowEmpty"
)