requestgen

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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