Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSON_Prefix string = ""
Functions ¶
func JsonP ¶
Take a string 's' in JSON and if a get parameter "callback" is specified then format this for JSONP callback. If it is not a JSONp call (no "callback" parameter) then add JSON_Prefix to the beginning.
func JsonP_Param ¶
func JsonP_Param(s string, res http.ResponseWriter, callback string) string
If "callback" is not "" then convert the JSON string 's' to a JSONp callback. If it is not a JSONp call (no "callback" parameter) then add JSON_Prefix to the beginning.
func PrependPrefix ¶
For non-JSONP callable - just prepend the prefix and return.
func SetJsonPrefix ¶
func SetJsonPrefix(p string)
Set a prefix that will be pre-pended to every return JSON string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.