A lightweight Go library for parsing form data, JSON, and query parameters from HTTP requests.
Forms is a lightweight Go library that simplifies parsing data from HTTP requests. It supports multiple data formats including multipart forms, URL-encoded forms, JSON data, and URL query parameters, making it a versatile tool for handling user input in web applications. The library is framework-agnostic and works directly with Go's standard http package.
Go developers building web applications who need a simple, unified way to parse and validate HTTP request data without being tied to a specific web framework.
Developers choose Forms for its minimal yet powerful approach to handling common web development tasks, offering built-in validation and data conversion helpers while keeping dependencies light and usage straightforward.
A lightweight go library for parsing form data or json from an http.Request.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Parses multipart forms, URL-encoded forms, JSON data, and URL query parameters from a single http.Request, simplifying input handling across different request types as demonstrated in the example usage.
Includes a Validator object with methods for common tasks like requiring fields, validating lengths, matching email patterns, and checking file uploads, reducing boilerplate code.
Works directly with Go's standard http package, making it compatible with any web framework or minimal applications without imposing dependencies, as highlighted in the README.
Provides specific methods for accessing and validating uploaded files, such as GetFileBytes for retrieving file contents, useful for processing uploads without extra dependencies.
The project is explicitly marked as no longer actively maintained in the README, making it unsuitable for production use and risking unaddressed bugs or security vulnerabilities.
No guarantees of backwards compatibility until version 1.0, with potential breaking changes that require dependency vendoring tools like godep, adding complexity and risk.
Validation methods are basic and may not cover complex scenarios, lacking support for custom validation rules or advanced integrations, which could necessitate additional libraries.