Go 2

How to run simple http server in Go

Issue #220

Handle url parameter

go
package main

import (
  "net/http"
  "log"
)

func handleGreeting(w http.ResponseWriter, r *http.Request) { …

How to parse json in Go

Issue #199

Unmarshal using encoding/json

  • property in struct needs to be first letter capitalized
go
import (
	"net/http"
	"encoding/json" …