https://github.com/jcobhams/echoresponse
Echo Framework Response Formatter
https://github.com/jcobhams/echoresponse
echo-framework golang
Last synced: 8 months ago
JSON representation
Echo Framework Response Formatter
- Host: GitHub
- URL: https://github.com/jcobhams/echoresponse
- Owner: jcobhams
- License: mit
- Created: 2020-09-18T19:14:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T13:10:59.000Z (about 2 years ago)
- Last Synced: 2025-10-13T19:31:43.448Z (8 months ago)
- Topics: echo-framework, golang
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Echo Framework Response Formatter
This is a VERY opinionated package to format HTTP responses.
It absolutely depends on [Echo Framework](github.com/labstack/echo)
### Response Format
It returns JSON responses only
Two keys are a present in the JSON string.
`msg => string`
`payload => interface{}`
`payload` could be anything. Map, List, Int, String
### Why?
I got tired of writing and duplicating the same code across most of my projects.
_Use it if you want/like/don't like :)_