Documentation ¶
Index ¶
Constants ¶
View Source
const APIResponse = "api"
APIResponse body
View Source
const IndexResponse = "<script src='/js/app.js'></script>"
IndexResponse body
View Source
const JavascriptResponse = "document.write('JS loaded')"
JavascriptResponse body
Variables ¶
View Source
var APIHandler = func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(APIResponse)) }
APIHandler would represent a response from the Go API
View Source
var MemoryHTTPFilesystem http.FileSystem
MemoryHTTPFilesystem to pretend we are reading from a SPA directory
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.