Documentation
¶
Overview ¶
Package template provides types the implement the xml.Marshaler interfaces for HC Templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommaDelimited ¶
type CommaDelimited []string
CommaDelimited is a slice of string that marshals into an XML comma-separated string.
func (CommaDelimited) MarshalXML ¶
func (s CommaDelimited) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML implements the xml.Marshaler interface for s. The slice is joined into a single comma-separated string.
type SpaceDelimited ¶
type SpaceDelimited []string
SpaceDelimited is a slice of string that marshals into an XML space-separated string.
func (SpaceDelimited) MarshalXML ¶
func (s SpaceDelimited) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML implements the xml.Marshaler interface for s. The slice is joined into a single space-separated string.
type Values ¶
Values is a map of strings that marshals into an XML key/value pair.
func (Values) MarshalXML ¶
MarshalXML implements the xml.Marshaler interface for v. Each key/value pair renders an XML element. There is no outer VALUE element.