plist

package module
v0.0.0-...-40b452e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2014 License: MIT Imports: 10 Imported by: 0

README

go-plist

A simple Plist file parser for Go

Installation

Include github.com/jason0x43/go-plist as a dependency in your code. The library imports as plist.

Documentation

See the godocs.

Documentation

Overview

Package plist provides an API for reading Apple property lists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, v *Plist) error

Unmarshal parses a Plist out of a given array of bytes.

Types

type Array

type Array []interface{}

Array represents a property list "array" element.

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

A Decoder represents a plist parser reading from a stream.

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder creates a Decoder for a given Reader.

func (*Decoder) Decode

func (d *Decoder) Decode(v *Plist) error

Decode executes the Decoder to fill in a Plist structure.

type Dict

type Dict map[string]interface{}

Dict represents a property list "dict" element.

type Plist

type Plist struct {
	Version string
	Root    interface{}
}

Plist represents a property list.

func UnmarshalFile

func UnmarshalFile(filename string) (*Plist, error)

UnmarshalFile loads a file and parses a Plist from the loaded data. If the file is a binary plist, the plutil system command is used to convert it to XML text.

Directories

Path Synopsis
The plist command parses a plist file and indicates whether the parse was successful.
The plist command parses a plist file and indicates whether the parse was successful.

Jump to

Keyboard shortcuts

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