Help us shape the future of Go! Take the 2026 Go Developer Survey

form

package
v1.0.74 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default is the default form field
	Default = make(url.Values)

	// AtValues is a [L.Lens] that focusses on the values of a form field
	AtValues = LRG.AtRecord[url.Values, []string]

	// AtValue is a [L.Lens] that focusses on first value in form fields
	AtValue = F.Flow2(
		AtValues,
		composeHead,
	)
)

Functions

func WithValue

func WithValue(name string) func(value string) FormBuilder

WithValue creates a FormBuilder for a certain field

Types

type FormBuilder

type FormBuilder = func(url.Values) url.Values

FormBuilder returns a function that transforms a form

func WithoutValue

func WithoutValue(name string) FormBuilder

WithoutValue creates a FormBuilder that removes a field

Jump to

Keyboard shortcuts

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