Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FalseText = BooleanText{
Text: "false",
}
View Source
var TrueText = BooleanText{
Text: "true",
}
Functions ¶
func RemoveDuplicates ¶
func RemoveDuplicates[T Nameable, S ~[]T](slice *S)
Types ¶
type BooleanText ¶
type BooleanText struct {
Text string `xml:",chardata"`
}
func BooleanTextValue ¶
func BooleanTextValue(cmd *cobra.Command, flag string) (t *BooleanText)
func (*BooleanText) IsFalse ¶
func (b *BooleanText) IsFalse() bool
func (*BooleanText) IsTrue ¶
func (b *BooleanText) IsTrue() bool
func (BooleanText) MarshalXML ¶
func (b BooleanText) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*BooleanText) String ¶
func (b *BooleanText) String() string
func (*BooleanText) ToBool ¶
func (b *BooleanText) ToBool() bool
type IntegerText ¶
type IntegerText struct {
Text string `xml:",chardata"`
}
func IntegerValue ¶
func IntegerValue(cmd *cobra.Command, flag string) (t *IntegerText)
type Metadata ¶
type Metadata = metadata.MetadataPointer
type TextLiteral ¶
type TextLiteral struct {
Text string `xml:",innerxml"`
}
func (*TextLiteral) String ¶
func (t *TextLiteral) String() string
Click to show internal directories.
Click to hide internal directories.