Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestBody ¶
func RequestBody(reqBody *string) bodyExtractor
RequestBody extracts data from the request body RequestBody is a HOF that returns a function that extracts data from the request body The function returned by RequestBody can be used in the template engine to extract data from the request body The function can be used in the template engine with the following signatures: {{ requestBody }} -> returns the whole request body {{ requestBody "key" }} -> returns the value of the key in the request body {{ requestBody "key" "fallback" }} -> returns the value of the key in the request body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.