extractors

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL