package
1.0.8
Repository: https://github.com/csystem/gcuu.git
Documentation: pkg.go.dev

# README

jsend

Implements the JSend specification for gin. See JSend specification for details.

Usage

func (h Health) Status(c *gin.Context) {
  data := gin.H{"application": gin.H{"version": "20190808"}}
  resp := jsend.R{CTX: c, StatusCode: http.StatusOK, Data: data}
  resp.JSON()
}

The above will output the following JSON encoded message:

{
  "status": "success",
  "data": {
    "application": {
      "version": "20190808"
    }
  }
}

Thanks

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

R is a shortcut for Response.