localstorage

package
v0.0.0-...-fab95c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

type LocalStorage struct {
	Object js.Value
}

func NewLocalStorage

func NewLocalStorage() LocalStorage

func (LocalStorage) Clear

func (l LocalStorage) Clear()

Clear the cache

func (LocalStorage) GetItem

func (l LocalStorage) GetItem(key string) string

GetItem return the key item.

func (LocalStorage) RemoveItem

func (l LocalStorage) RemoveItem(key string)

RemoveItem remove val into localstorage under key.

func (LocalStorage) SetItem

func (l LocalStorage) SetItem(key string, val string)

SetItem save val into localstorage under key.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL