Documentation ¶
Overview ¶
Package localstate provides utilities for accessing the browser's Local State file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal will update Local State with localState. localState includes pref names and pref values that will be written to local state. pref name with dot format "foo.bar.baz" is not allowed in localState interface. localState could include nested map type {"foo":{"bar":{"baz": 1234}}}.
func MarshalPref ¶
MarshalPref will update the pref with val in local state. pref name could have format "foo.bar.baz". Each component separated by '.' will be used as key of the dict. pref must not be an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.