Documentation ¶
Overview ¶
Package mozpref is a Go library for reading and writing preference files as used by Mozilla Firefox and Thunderbird.
Index ¶
Constants ¶
View Source
const ( // Sticky preferences are retained in the configuration even when they // match the application default. Sticky = 1 << iota // Locked preferences can't be changed in the application user // interface. Locked // UserPref are used in "user.js" UserPref )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pref ¶
type Pref struct { // Value must be of type string, int or boolean Value interface{} // Bitfield with flags Flags uint }
Pref holds the value of a preference and associated flags.
type PrefMap ¶
PrefMap is a collection of preferences.
func FromMap ¶
FromMap copies all entries in a map[string]interface{} into a PrefMap. All entries are given the same flags.
func ReadFrom ¶
ReadFrom reads preferences from given reader and returns a map with the parsed values.
Click to show internal directories.
Click to hide internal directories.