goja-play

command module
v0.0.0-...-9a57595 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

can we use javascript to create json for golang consumption?

It'd be nice to create the json in regular commonJS style..

This is just experimenting with https://github.com/dop251/goja (native golang javascript engine) to see how far we can go

EG:

const foo = {
    waz: "baz"
  }

The golang in here should be able to run each example-*/runme.js file..

EG:

for a in example*/runme.js ; do
  go run . --file "${a}"
  echo "============================================"
done

image

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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