O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Common local storage operations

We will be showing you how to perform some common operations on the localStorage object using JavaScript code. These operations include the following:

  1. Setting a key-value pair
  2. Getting a value for a given key
  3. Getting all key-value pairs
  4. Clearing all entries

In the next section, we will show you how to perform the same operations using GopherJS, in a fully fleshed out example.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required