Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSwagger ¶
LoadSwagger loads swagger from specified location
func SendResponse ¶
func SendResponse(w http.ResponseWriter, res JSONResponse)
SendResponse handles writing json responses back to the client using http response writer
func StringExists ¶
StringExists checks for a needle (string) in a haystack (array)
func ToStringMap ¶
func ToStringMap(source []interface{}) []string
ToStringMap converts YAML arrays to their source string array
Types ¶
type JSONResponse ¶
JSONResponse is alias of map for JSON response
Click to show internal directories.
Click to hide internal directories.