Documentation
¶
Overview ¶
Package rest provides utilities for REST server
Index ¶
Constants ¶
View Source
const APIRoot = "/api/v3"
Namazu REST API Root string
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
Write err to both of stdout and w
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, value interface{}) error
Write JSON value to w
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.