localstate

package
v0.0.0-...-7b190fc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear Removes the underlying file used to store the state and causes a reload (i.e. state will be empty)

func Get

func Get(key string) string

Get return a value by key from the local state

func List

func List() map[string]interface{}

func Set

func Set(key string, value string)

Set sets a local state value by key

func SetStateFileName

func SetStateFileName(fn string)

SetStateFileName sets the name of the underlying file used to store the state and causes the state to reload

func Unset

func Unset(key string)

Unset remove a key from the local state

Types

This section is empty.

Jump to

Keyboard shortcuts

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