Skip to content

Instantly share code, notes, and snippets.

@kentquirk
Created June 28, 2018 03:40
Show Gist options
  • Save kentquirk/735e56d52ef827efb3612d5b6ca48b19 to your computer and use it in GitHub Desktop.
Save kentquirk/735e56d52ef827efb3612d5b6ca48b19 to your computer and use it in GitHub Desktop.
Using Go structs from JS
m = require("./objtest2.js");
h = m.hashobj({
name: "Kent",
address: "Somewhere in Space and Time",
city: "Specificity",
state: "CT"
})
console.log(h.hash.slice(0, 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment