Documentation
¶
Index ¶
- func File(ctx *gin.Context, filePath string)
- func Json(ctx *gin.Context, enum enum.ErrorNum, data interface{})
- func JsonNoTag(ctx *gin.Context, enum enum.ErrorNum, data interface{})
- func WriteJSON(w http.ResponseWriter, obj interface{}) error
- func Yaml(ctx *gin.Context, data interface{})
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, obj interface{}) error
Types ¶
Click to show internal directories.
Click to hide internal directories.