Documentation
¶
Overview ¶
Package storage is a small key-value store for app data that should survive restarts: settings, drafts, the last-seen screen. Values are JSON in one file in the app's data directory; keep it to kilobytes, and put secrets in securestore instead.
storage.Set(ctx, "theme", "dark") var theme string ok, err := storage.Get(ctx, "theme", &theme)
Under `nimbus native dev` the app runs on this machine, so the file lives in the user cache directory instead of on the device.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.