An open API service indexing awesome lists of open source software.

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

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