Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct {
Data any
}
func (JSON) WriteContentType ¶
func (j JSON) WriteContentType(w http.ResponseWriter)
type Render ¶
type Render interface { // Render 自定义返回信息 Render(w http.ResponseWriter) error // WriteContentType 写入自定义的ContentType WriteContentType(w http.ResponseWriter) }
Click to show internal directories.
Click to hide internal directories.