Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamegos/jsend
Go JSend library to wrap json responses
https://github.com/gamegos/jsend
Last synced: 2 months ago
JSON representation
Go JSend library to wrap json responses
- Host: GitHub
- URL: https://github.com/gamegos/jsend
- Owner: gamegos
- License: mit
- Created: 2015-07-14T17:08:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T10:07:27.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T13:29:06.767Z (5 months ago)
- Language: Go
- Homepage:
- Size: 137 KB
- Stars: 8
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - gamegos/jsend - Go JSend library to wrap json responses (Go)
README
# jsend
[![Build Status](https://travis-ci.org/gamegos/jsend.svg?branch=master)](https://travis-ci.org/gamegos/jsend)
[![GoDoc](https://godoc.org/github.com/gamegos/jsend?status.svg)](http://godoc.org/github.com/gamegos/jsend)Golang **JSend** library
## Installation
```
$ go get github.com/gamegos/jsend
```## Usage
```go
import "github.com/gamegos/jsend"
```See [API documentation](http://godoc.org/github.com/gamegos/jsend)
## Format
Jsend is a very simple json format to wrap your json responses.
```json
{
"status": "success|fail|error",
"data": {
"your data": "here..."
},
"message": "error message when status is error"
}
```See [JSend specification](http://labs.omniti.com/labs/jsend) for details.
## License
MIT. See [LICENSE](./LICENSE).