htmlform

package module
v0.0.0-...-eabe7c8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormTemplate = `` /* 1397-byte string literal not displayed */

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func MustNewHandler

func MustNewHandler(fun function.Wrapper, title string, successHandler function.HTTPResultsWriter) (handler *Handler)

func NewHandler

func NewHandler(wrappedFunc function.Wrapper, title string, resultWriter function.HTTPResultsWriter) (handler *Handler, err error)

func (*Handler) ServeHTTP

func (handler *Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)

func (*Handler) SetArgDefaultValue

func (handler *Handler) SetArgDefaultValue(arg string, value any)

func (*Handler) SetArgInputType

func (handler *Handler) SetArgInputType(arg string, value string)

func (*Handler) SetArgOptions

func (handler *Handler) SetArgOptions(arg string, options []Option)

func (*Handler) SetArgRequired

func (handler *Handler) SetArgRequired(arg string, required bool)

func (*Handler) SetArgValidator

func (handler *Handler) SetArgValidator(arg string, validator types.ValidatErr)

func (*Handler) SetSubmitButtonText

func (handler *Handler) SetSubmitButtonText(text string)

type Option

type Option struct {
	Label string
	Value any
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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