forms

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFormToStruct

func ParseFormToStruct(r *http.Request, dest any) error

ParseFormToStruct parses r.Form (URL query + body form) into dest, using each field's `json:"name"` tag for lookup. Fields without a json tag fall back to the field name (case-sensitive). Supported types: string, all signed ints, and time.Time (via common layouts above). Pointer fields to these types are also supported. dest must be a pointer to a struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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