https://github.com/fajrulaulia/rewritejson
Package to generate to json for easy write something
https://github.com/fajrulaulia/rewritejson
golang json package
Last synced: about 2 months ago
JSON representation
Package to generate to json for easy write something
- Host: GitHub
- URL: https://github.com/fajrulaulia/rewritejson
- Owner: fajrulaulia
- Created: 2020-10-18T03:29:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-23T13:39:46.000Z (over 5 years ago)
- Last Synced: 2025-03-12T15:35:12.869Z (over 1 year ago)
- Topics: golang, json, package
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# package rewritejson
Package to generate to json for easy write something
## Installation
use command `go` for get package.
```bash
$ go get github.com/fajrulaulia/rewritejson
```
import :
``` go
import c "github.com/fajrulaulia/rewritejson"
```
## Usage
this is a function structure how to use this package.
> func rewritejson.Response(data []string) []byte
## Example
``` go
package ......
..............
import c "github.com/fajrulaulia/rewritejson"
...............
...............
defined:=[]string{"code:number|500", "message:string|This Error"}
output := c.Response(defined)
```
you can see a testfile for seeing example for implementation in your project
## Author
- fajrul aulia