This code is a direct copy of the code found on the Express.js site under Getting Started. I just followed installing and hello world from there to get a basic server up and running.
(index.js file)
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/net/context" | |
| cc "golang.org/x/oauth2/clientcredentials" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| ) |
This code is a direct copy of the code found on the Express.js site under Getting Started. I just followed installing and hello world from there to get a basic server up and running.
(index.js file)
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |