Documentation ¶
Index ¶
Constants ¶
View Source
const ( Host = "localhost" Port = "3333" )
Variables ¶
This section is empty.
Functions ¶
func ErrorJSON ¶
func ErrorJSON(w http.ResponseWriter, error string, code int)
ErrorJSON replies to the request with the specified error message and HTTP code using JSON.
func ResponseJSON ¶
func ResponseJSON(w http.ResponseWriter, data interface{})
ResponseJSON replies to the request with the specified message using JSON.
Types ¶
Click to show internal directories.
Click to hide internal directories.