Socket
Book a DemoInstallSign in
Socket

github.com/rsdoiel/developing-with-go-and-a-js-repl

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/rsdoiel/developing-with-go-and-a-js-repl

Source
Go
Version
v0.0.0-20160602230021-d6a336fd5f24
Version published
Created
Source

Go Report Card License

Developing with go and a JavaScript REPL

This is a demonstration of creating a simple middle-ware and JavaScript REPL based on otto JavaScript implementation, ostdlib and the weather.gov REST API. It assumes you're either following along verbatim or you've gone through the Go language tutorials at golang.org.

Why Go and a JavaScript REPL? Well Go is fun, compiles reasonable fast but is not an interpreted dynamically typed language. JavaScript is an interpreted dynamically typed language. I have found doing ad-hoc or exploratory coding to benefit from the immediate feedback and flexibility found in interpreted dynamically typed laugange. On the other hand when I want things to "just work" and be solid I like Go. Fortunately Go and JavaScript lively happily together thanks to Robert Krimen's Go package named otto.

table of contents

  • If you're having problems at this point please checkout golang.org and one of the excellent Go tutorials
  • rw1 - a very simple JavaScript REPL
  • rw2 - a JavaScript REPL with some extensions from ostdlib
  • rw3 - An initial JavaScript REPL with weather.gov RSS content

Reference material

FAQs

Package last updated on 02 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts