Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.go

Created Dec 12, 2018
Embed
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
You can’t perform that action at this time.