internal

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: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConvertNumericXMLEntities = true
View Source
var FormulaEscaper = strings.NewReplacer(
	`&`, "&",
	`'`, "'",
	`<`, "&lt;",
	`>`, "&gt;",
	`"`, "&quot;",
)
View Source
var MarshalWide = false
View Source
var TypeRegistry metadataTypeRegistry

Functions

func DisableIndent

func DisableIndent(e *xml.Encoder)

func EnableIndent

func EnableIndent(e *xml.Encoder)

func Marshal

func Marshal(t interface{}) ([]byte, error)

func MarshalXml

func MarshalXml(o any, e *xml.Encoder, start xml.StartElement) error

func SelfClosing

func SelfClosing(b []byte) []byte

Make empty tags self-closing

func TrimSuffixToEnd

func TrimSuffixToEnd(s, suffix string) string

Trim suffix plus anything that follows it.

func WriteToFile

func WriteToFile(t interface{}, fileName string) error

Types

type OpenMetadataFunc

type OpenMetadataFunc func(path string) (metadata.RegisterableMetadata, error)

Jump to

Keyboard shortcuts

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