Documentation
¶
Index ¶
- func AjaxError(c *gin.Context, code int, err error)
- func AjaxJSONString(c *gin.Context, content string)
- func AjaxSuccess(c *gin.Context, content any)
- func AjaxSuccessWithReturns(c *gin.Context, content any) ([]byte, error)
- func AjaxWrapJSONString(c *gin.Context, content string)
- func ExtractContent(regex *regexp.Regexp, str string, options ExtractJSONOptions) (string, error)
- func IsAllowedImageDomain(hostname string) bool
- func IsAllowedRedirectDomain(hostname string) bool
- func SignAndGenerateURL(urlStr string, query url.Values) (string, error)
- type ExtractJSONOptions
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AjaxJSONString ¶
func AjaxSuccess ¶
func AjaxSuccessWithReturns ¶
func AjaxWrapJSONString ¶
func ExtractContent ¶
func IsAllowedImageDomain ¶
func IsAllowedRedirectDomain ¶
Types ¶
type ExtractJSONOptions ¶
Click to show internal directories.
Click to hide internal directories.