Documentation ¶
Overview ¶
Package serdser contains the reusable serialization/deserialization logics in order to be used by the resource packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddErr ¶
AddErr adds the msgs error strings for the name field into the given errs map (instantiating it, if errs is nil yet).
func Assert ¶
Assert ensures that ok is true, and it was false, the name and msgs will be added to the errs map using the AddErr function.
func Bind ¶
Bind tries to bind the request parameters, from the c context, into the req struct, received as an interface.
The b indicates the binding method. Use binding.JSON in order to read json data from the body, binding.Query in order to read the URL query parameters, binding.Form in order to read a urlencoded or multipart form body for requests with a body and to read query parameters for GET requests, binding.Uri in order to read the path parameters.
Types ¶
This section is empty.