requestgen

command
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 19 Imported by: 0

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

  1. pointer -> optional fields
  2. literal value -> required fields

5. parameter builder method should return one of the types:

  • url.Values
  • map[string]interface{}

Jump to

Keyboard shortcuts

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