Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviders ¶
func GetProviders() []string
func LookupEnvAnyKey ¶
func RegisterInputs ¶
Types ¶
type Input ¶
type Input struct {
Type string // text / textarea / radio / checkbox / select
Name string
Label string
Value string
Options []Option
Placeholder string
Help string
Required bool
Pattern string // 正则表达式(首尾不要含^和$)
MinLength *int
MaxLength *int
Min *int
Max *int
Step *int
Default string
}
func (Input) BuildHTMLAttrs ¶
func (Input) RenderHTMLHelp ¶
func (Input) RenderHTMLInput ¶
func (Input) RenderHTMLLabel ¶
type Inputs ¶
type Inputs []Input
func (Inputs) RenderAllHTMLs ¶
func (Inputs) RenderCaddyfile ¶
func (Inputs) RenderHTMLs ¶
Click to show internal directories.
Click to hide internal directories.