Go HAL-browser
A Go http.Handler that serves up
a statically compiled version of Mike Kelly's
HAL-browser.
Examples
package main
import "net/http"
import "github.com/cbandy/go-hal_browser"
func main() {
// To serve the HAL-browser at "/browser.html"
http.Handle("/", hal_browser.Handler)
}
// To serve the HAL-browser at "/explore.html"
http.Handle("/", hal_browser.At("/explore.html"))
// To serve the HAL-browser at "/explorer/browser.html"
http.Handle("/explorer/", http.StripPrefix("/explorer", hal_browser.Handler))
// To serve the HAL-browser at "/explorer/"
http.Handle("/explorer/", http.StripPrefix("/explorer", hal_browser.At("/")))