Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expr ¶
type Expr struct {
// contains filtered or unexported fields
}
func NewExpr ¶
NewExpr creates a new tag expression from `expr`. Since we parse it as a Go build line `//go:build <expr>` only `_` and `.` are allowed in tags, we allow also "-", which we internally replace with `.`.
func (Expr) MarshalYAML ¶
MarshalYAML marshals to YAML. NOTE: needs to be value-receiver to be called!
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func (Tag) MarshalYAML ¶
MarshalYAML marshals to YAML. NOTE: needs to be value-receiver to be called!
Click to show internal directories.
Click to hide internal directories.