Skip to content

Commit 3fae9f4

Browse files
committed
update doc for raw response
1 parent 33281ff commit 3fae9f4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

readme.md

+13
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,19 @@ Res.Code(200).
218218
Json(c)
219219
```
220220

221+
for set custom key value in response
222+
```go
223+
paginate := your paginate data
224+
225+
Res.Code(200).
226+
Message("Success").
227+
Data(data).
228+
Raw(map[string]interface{}{
229+
"meta": paginate,
230+
}).
231+
Json(c)
232+
```
233+
221234
`Res` Api Methods:
222235
```go
223236
Json

0 commit comments

Comments
 (0)