https://github.com/gamegos/jsend
Go JSend library to wrap json responses
https://github.com/gamegos/jsend
Last synced: 7 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 (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T10:07:27.000Z (over 3 years ago)
- Last Synced: 2024-11-04T15:52:32.567Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 137 KB
- Stars: 9
- 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
[](https://travis-ci.org/gamegos/jsend)
[](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).