forms

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package forms has helper functions for working with HTML forms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	Action string
	Method string
	Inputs map[string]string
}

A Form represents an HTML form.

func Parse

func Parse(r io.Reader) []Form

Parse parses all the forms in an HTML document.

func (*Form) NewRequestWithContext

func (f *Form) NewRequestWithContext(ctx context.Context, baseURL *url.URL) (*http.Request, error)

NewRequestWithContext creates a new request from the form details.

Jump to

Keyboard shortcuts

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