Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 779 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 779 Bytes

jsend

Build Status GoDoc

Golang JSend library

Installation

$ go get github.com/gamegos/jsend

Usage

import "github.com/gamegos/jsend"

See API documentation

Format

Jsend is a very simple json format to wrap your json responses.

{
  "status": "success|fail|error",
  "data": {
    "your data": "here..."
  },
  "message": "error message when status is error"
}

See JSend specification for details.

License

MIT. See LICENSE.