Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Response func(d Res) (data []byte) = func(d Res) (data []byte) { data, err := json.Marshal(d) if err != nil { log.Fatalln("Unable to convert to JSON", err) } return data }
Response has the data :param: A Res data type. :return: A JSON string for the Res data type.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.