general

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 9 Imported by: 1

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)

func Tidy

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 Nameable

type Nameable interface {
	GetName() string
}

type TextLiteral

type TextLiteral struct {
	Text string `xml:",innerxml"`
}

func TextValue

func TextValue(cmd *cobra.Command, flag string) (t *TextLiteral)

func (*TextLiteral) String

func (t *TextLiteral) String() string

type Tidyable

type Tidyable interface {
	Tidy()
}

Jump to

Keyboard shortcuts

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