- the parser itself includes helper functions (such as Ok() and Failed()) so you dont manually write all the boilerplate for the functional options that go into the JSON() func. The Ok() func takes in an ResponseWriter and a []byte to encode the response, in which the []byte can be passed in with the []byte value returned by the json.Marshal() function. The Failed() func just takes in a ResponseWriter and an status number, and an error message that is to be displayed, in which the message in encoded internally into json before being sent.
72sevenzy2/json-parser
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|