plistutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) (any, error)

Value of an XML or binary property list: map[string]any, []any, string, int64 (uint64 above its range), float64, bool, []byte, time.Time, UID, nil for a binary null

func EncodeXML

func EncodeXML(v any) ([]byte, error)

XML property list of v, tab indented with dictionary keys sorted: strings, booleans, integer and float kinds, time.Time, []byte, UID, slices and arrays, string-keyed maps

Types

type Error

type Error struct {
	Msg  string
	Line int
	Err  error
}

Failure to read or write a property list, Line naming the XML line it happened on when known

func (*Error) Error

func (e *Error) Error() string

Message prefixed with plist and the line, followed by the cause

func (*Error) Unwrap

func (e *Error) Unwrap() error

Cause of the failure, nil when there is none

type UID

type UID uint64

Reference to an object of a keyed archive, a CF$UID entry

Jump to

Keyboard shortcuts

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