htmlform

package
v0.0.0-...-6ed38a2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 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(commandFunc interface{}, args command.Args, title string, successHandler http.Handler) (handler *Handler)

func NewHandler

func NewHandler(commandFunc interface{}, args command.Args, title string, successHandler http.Handler) (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 interface{})

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 interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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