gamegos / jsend

Go JSend library to wrap json responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Go JSend library to wrap json responses

License:MIT License


Languages

Language:Go 100.0%