labels

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "CustomLabels"

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomLabel

type CustomLabel struct {
	FullName         string  `xml:"fullName"`
	Categories       *string `xml:"categories"`
	Language         string  `xml:"language"`
	Protected        string  `xml:"protected"`
	ShortDescription string  `xml:"shortDescription"`
	Value            string  `xml:"value"`
}

type CustomLabelList

type CustomLabelList []CustomLabel

type CustomLabels

type CustomLabels struct {
	metadata.MetadataInfo
	XMLName xml.Name        `xml:"CustomLabels"`
	Xmlns   string          `xml:"xmlns,attr"`
	Labels  CustomLabelList `xml:"labels"`
}

func Open

func Open(path string) (*CustomLabels, error)

func (*CustomLabels) GetLabels

func (s *CustomLabels) GetLabels() CustomLabelList

func (*CustomLabels) SetMetadata

func (c *CustomLabels) SetMetadata(m metadata.MetadataInfo)

func (*CustomLabels) Tidy

func (c *CustomLabels) Tidy()

Tidy sorts the labels by fullName

func (*CustomLabels) Type

Jump to

Keyboard shortcuts

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