Documentation
¶
Overview ¶
Package plistutil provides utilities for working with property list files
Index ¶
- func ConvertFormat(srcPath, dstPath string, dstFormat Format) error
- func DeleteValue(data map[string]interface{}, path string) bool
- func FormatToString(format Format) string
- func GetValue(data map[string]interface{}, path string) (interface{}, bool)
- func MergePlists(base, overlay map[string]interface{}) map[string]interface{}
- func ReadPlist(path string) (map[string]interface{}, error)
- func SetValue(data map[string]interface{}, path string, value interface{}) error
- func Validate(path string) error
- func WritePlist(path string, data map[string]interface{}, format Format) error
- type Format
- type PlistInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFormat ¶
ConvertFormat converts a plist file from one format to another
func DeleteValue ¶
DeleteValue removes a value from the plist using a dot-notation path
func FormatToString ¶
FormatToString converts a Format enum to a string
func MergePlists ¶
MergePlists merges two plists, with the second one taking precedence
Types ¶
type Format ¶
type Format int
Format represents the plist format
const ( // FormatXML is the XML plist format FormatXML Format = iota // FormatBinary is the binary plist format FormatBinary // FormatOpenStep is the OpenStep plist format FormatOpenStep // FormatGNUStep is the GNUStep plist format FormatGNUStep // FormatAuto will auto-detect the format when reading FormatAuto )
func DetectFormat ¶
DetectFormat detects the format of a plist file
func StringToFormat ¶
StringToFormat converts a string to a Format enum
Click to show internal directories.
Click to hide internal directories.