plist

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package plist provides a parser for XML-formatted plist documents. Binary plist is not supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array []Value

Array represents an array.

func (*Array) UnmarshalXML

func (a *Array) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type Dict

type Dict map[string]Value

Dict represents a dict.

func (*Dict) UnmarshalXML

func (d *Dict) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type Plist

type Plist struct {
	Value Value
}

Plist represents a plist document.

func (*Plist) UnmarshalXML

func (p *Plist) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type Value

type Value struct {
	Array Array
	Dict  Dict

	String *string
	Data   []byte
	Date   *time.Time

	Boolean *bool
	Real    *float64
	Integer *int64
}

Value represents a value.

func (*Value) UnmarshalXML

func (v *Value) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

Jump to

Keyboard shortcuts

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