Discover Packages
github.com/proemergotech/bind
gentlemanbind
package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Mar 8, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Bind(requestData interface{}) p .Plugin
Bind binds a struct to a gentleman request using the tags of the struct.
If you want to bind a non-struct object, use the builtin JSON, Param(s) and (Set|Add)Query methods.
The following tags are valid:
json: marks body fields
param: marks url params
query: marks query params
Source Files
¶
Click to show internal directories.
Click to hide internal directories.