Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, obj interface{}) error
WriteJSON marshals the given interface object and writes it with custom ContentType.
Types ¶
type ProtoJson ¶
type ProtoJson struct {
Data interface{}
}
func (ProtoJson) WriteContentType ¶
func (p ProtoJson) WriteContentType(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.