form

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(action string, nodes ...node.Node) *element

Get Creates a form with GET method and specified action URL. Example: form.Get("/search", form.New()) Renders: <form action="/search" method="get"><form></form></form>

func New

func New(nodes ...node.Node) *element

New Creates a new form element with child nodes. Example: form.New(form.New()) Renders: <form><form></form></form>

func Post

func Post(action string, nodes ...node.Node) *element

Post Creates a form with POST method and specified action URL. Example: form.Post("/login", form.New()) Renders: <form action="/login" method="post"><form></form></form>

Types

type Element

type Element = element

Element is an exported alias for the private element type

Jump to

Keyboard shortcuts

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