Documentation ¶
Overview ¶
requestgen generates the request builder methods.
1. it parses the struct of the given type 2. iterate and filter the fields with json tag. 3. build up the field object with the parsed metadata 4. generate the accessor method for each field
- pointer -> optional fields
- literal value -> required fields
5. parameter builder method should return one of the types:
- url.Values
- map[string]interface{}
Click to show internal directories.
Click to hide internal directories.