Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2018 01:45
What would you like to do?
package main
import "syscall/js"
func main() {
window := js.Global().Get("window")
localStorage := window.Get("localStorage")
localStorage.Set("Hello", "World")
println("localStorage -> " + localStorage.Get("JavaScript").String())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment