Documentation ¶
Overview ¶
Urls for normal build
Index ¶
- Constants
- func FormDataToStruct(data map[string]string, s any) error
- func FormatIfDateTime(val any) any
- func GetValue(s any, column string) any
- func InputWithLabel(t ...string) (*Element, *Element, *Element)
- func ReflectModelName(s any) string
- func SetValue(s any, column string, value any)
- func SetValueStrict(s any, f reflect.StructField, v reflect.Value, column string, value any)
- func TransformValue(s any, field string, val any) (any, error)
- type Buffer
- type Element
- func A(t ...string) *Element
- func AF(innerText string, args ...any) *Element
- func Abbr(t ...string) *Element
- func AbbrF(innerText string, args ...any) *Element
- func Address(t ...string) *Element
- func AddressF(innerText string, args ...any) *Element
- func Area(t ...string) *Element
- func AreaF(innerText string, args ...any) *Element
- func Article(t ...string) *Element
- func ArticleF(innerText string, args ...any) *Element
- func Aside(t ...string) *Element
- func AsideF(innerText string, args ...any) *Element
- func Audio(t ...string) *Element
- func AudioF(innerText string, args ...any) *Element
- func B(t ...string) *Element
- func BF(innerText string, args ...any) *Element
- func Bdi(t ...string) *Element
- func BdiF(innerText string, args ...any) *Element
- func Bdo(t ...string) *Element
- func BdoF(innerText string, args ...any) *Element
- func Blockquote(t ...string) *Element
- func BlockquoteF(innerText string, args ...any) *Element
- func Body(t ...string) *Element
- func BodyF(innerText string, args ...any) *Element
- func Br() *Element
- func Button(t ...string) *Element
- func ButtonF(innerText string, args ...any) *Element
- func Canvas(t ...string) *Element
- func CanvasF(innerText string, args ...any) *Element
- func Caption(t ...string) *Element
- func CaptionF(innerText string, args ...any) *Element
- func Cite(t ...string) *Element
- func CiteF(innerText string, args ...any) *Element
- func Code(t ...string) *Element
- func CodeF(innerText string, args ...any) *Element
- func Col(t ...string) *Element
- func ColF(innerText string, args ...any) *Element
- func Colgroup(t ...string) *Element
- func ColgroupF(innerText string, args ...any) *Element
- func Command(t ...string) *Element
- func CommandF(innerText string, args ...any) *Element
- func Datalist(t ...string) *Element
- func DatalistF(innerText string, args ...any) *Element
- func Dd(t ...string) *Element
- func DdF(innerText string, args ...any) *Element
- func Del(t ...string) *Element
- func DelF(innerText string, args ...any) *Element
- func Details(t ...string) *Element
- func DetailsF(innerText string, args ...any) *Element
- func Dfn(t ...string) *Element
- func DfnF(innerText string, args ...any) *Element
- func Div(t ...string) *Element
- func DivF(innerText string, args ...any) *Element
- func Dl(t ...string) *Element
- func DlF(innerText string, args ...any) *Element
- func Dt(t ...string) *Element
- func DtF(innerText string, args ...any) *Element
- func Elem(t string, inner ...string) *Element
- func Em(t ...string) *Element
- func EmF(innerText string, args ...any) *Element
- func Embed(t ...string) *Element
- func EmbedF(innerText string, args ...any) *Element
- func Fieldset(t ...string) *Element
- func FieldsetF(innerText string, args ...any) *Element
- func Figcaption(t ...string) *Element
- func FigcaptionF(innerText string, args ...any) *Element
- func Figure(t ...string) *Element
- func FigureF(innerText string, args ...any) *Element
- func Footer(t ...string) *Element
- func FooterF(innerText string, args ...any) *Element
- func Form(t ...string) *Element
- func FormF(innerText string, args ...any) *Element
- func H1(t ...string) *Element
- func H1F(innerText string, args ...any) *Element
- func H2(t ...string) *Element
- func H2F(innerText string, args ...any) *Element
- func H3(t ...string) *Element
- func H3F(innerText string, args ...any) *Element
- func H4(t ...string) *Element
- func H4F(innerText string, args ...any) *Element
- func H5(t ...string) *Element
- func H5F(innerText string, args ...any) *Element
- func H6(t ...string) *Element
- func H6F(innerText string, args ...any) *Element
- func Header(t ...string) *Element
- func HeaderF(innerText string, args ...any) *Element
- func Hr() *Element
- func I(t ...string) *Element
- func IF(innerText string, args ...any) *Element
- func Iframe(t ...string) *Element
- func IframeF(innerText string, args ...any) *Element
- func Img(src string, alt ...string) *Element
- func Input(t ...string) *Element
- func Ins(t ...string) *Element
- func InsF(innerText string, args ...any) *Element
- func Kbd(t ...string) *Element
- func KbdF(innerText string, args ...any) *Element
- func Keygen(t ...string) *Element
- func KeygenF(innerText string, args ...any) *Element
- func Label(t ...string) *Element
- func LabelF(innerText string, args ...any) *Element
- func Legend(t ...string) *Element
- func LegendF(innerText string, args ...any) *Element
- func Li(t ...string) *Element
- func LiF(innerText string, args ...any) *Element
- func Main(t ...string) *Element
- func MainF(innerText string, args ...any) *Element
- func Map(t ...string) *Element
- func MapF(innerText string, args ...any) *Element
- func Mark(t ...string) *Element
- func MarkF(innerText string, args ...any) *Element
- func Menu(t ...string) *Element
- func MenuF(innerText string, args ...any) *Element
- func Meter(t ...string) *Element
- func MeterF(innerText string, args ...any) *Element
- func Nav(t ...string) *Element
- func NavF(innerText string, args ...any) *Element
- func Object(t ...string) *Element
- func ObjectF(innerText string, args ...any) *Element
- func Ol(t ...string) *Element
- func OlF(innerText string, args ...any) *Element
- func Optgroup(t ...string) *Element
- func OptgroupF(innerText string, args ...any) *Element
- func Option(t ...string) *Element
- func OptionF(innerText string, args ...any) *Element
- func Output(t ...string) *Element
- func OutputF(innerText string, args ...any) *Element
- func P(t ...string) *Element
- func PF(innerText string, args ...any) *Element
- func Param(t ...string) *Element
- func ParamF(innerText string, args ...any) *Element
- func Pre(t ...string) *Element
- func PreF(innerText string, args ...any) *Element
- func Progress(t ...string) *Element
- func ProgressF(innerText string, args ...any) *Element
- func Q(t ...string) *Element
- func QF(innerText string, args ...any) *Element
- func Rp(t ...string) *Element
- func RpF(innerText string, args ...any) *Element
- func Rt(t ...string) *Element
- func RtF(innerText string, args ...any) *Element
- func Ruby(t ...string) *Element
- func RubyF(innerText string, args ...any) *Element
- func S(t ...string) *Element
- func SF(innerText string, args ...any) *Element
- func Samp(t ...string) *Element
- func SampF(innerText string, args ...any) *Element
- func Script(src string, typ ...string) *Element
- func ScriptInline(sourceCode string, typ ...string) *Element
- func Section(t ...string) *Element
- func SectionF(innerText string, args ...any) *Element
- func Select(name string, listItems []any, deflt ...string) *Element
- func Small(t ...string) *Element
- func SmallF(innerText string, args ...any) *Element
- func Source(t ...string) *Element
- func SourceF(innerText string, args ...any) *Element
- func Span(t ...string) *Element
- func SpanF(innerText string, args ...any) *Element
- func Strong(t ...string) *Element
- func StrongF(innerText string, args ...any) *Element
- func StructToForm(s any, labelClass, inputClass string) *Element
- func StyleBlock(t ...string) *Element
- func StyleSheet(href string, rel string) *Element
- func Sub(t ...string) *Element
- func SubF(innerText string, args ...any) *Element
- func Summary(t ...string) *Element
- func SummaryF(innerText string, args ...any) *Element
- func Sup(t ...string) *Element
- func SupF(innerText string, args ...any) *Element
- func Table(t ...string) *Element
- func TableF(innerText string, args ...any) *Element
- func Tbody(t ...string) *Element
- func TbodyF(innerText string, args ...any) *Element
- func Td(t ...string) *Element
- func TdF(innerText string, args ...any) *Element
- func Textarea(t ...string) *Element
- func TextareaF(innerText string, args ...any) *Element
- func Tfoot(t ...string) *Element
- func TfootF(innerText string, args ...any) *Element
- func Th(t ...string) *Element
- func ThF(innerText string, args ...any) *Element
- func Thead(t ...string) *Element
- func TheadF(innerText string, args ...any) *Element
- func Time(t ...string) *Element
- func TimeF(innerText string, args ...any) *Element
- func Tr(t ...string) *Element
- func TrF(innerText string, args ...any) *Element
- func Track(t ...string) *Element
- func TrackF(innerText string, args ...any) *Element
- func U(t ...string) *Element
- func UF(innerText string, args ...any) *Element
- func Ul(t ...string) *Element
- func UlF(innerText string, args ...any) *Element
- func Var(t ...string) *Element
- func VarF(innerText string, args ...any) *Element
- func Video(t ...string) *Element
- func VideoF(innerText string, args ...any) *Element
- func Wbr(t ...string) *Element
- func WbrF(innerText string, args ...any) *Element
- func (e *Element) A(t ...string) *Element
- func (e *Element) AF(innerText string, args ...any) *Element
- func (e *Element) A_Accept(attr_accept ...string) *Element
- func (e *Element) A_Accesskey(attr_accesskey ...string) *Element
- func (e *Element) A_Align(attr_align ...string) *Element
- func (e *Element) A_Async() *Element
- func (e *Element) A_Autocomplete(def bool) *Element
- func (e *Element) A_Autofocus() *Element
- func (e *Element) A_Autoplay() *Element
- func (e *Element) A_Cite(attr_cite ...string) *Element
- func (e *Element) A_Cols(attr_cols string) *Element
- func (e *Element) A_Colspan(attr_colspan string) *Element
- func (e *Element) A_Content(attr_content ...string) *Element
- func (e *Element) A_Contenteditable() *Element
- func (e *Element) A_Contextmenu(attr_contextmenu ...string) *Element
- func (e *Element) A_Controls(attr_controls ...string) *Element
- func (e *Element) A_Coords(attr_coords ...string) *Element
- func (e *Element) A_Data(attr_data ...string) *Element
- func (e *Element) A_Datetime(attr_datetime ...string) *Element
- func (e *Element) A_Default(attr_default ...string) *Element
- func (e *Element) A_Defer() *Element
- func (e *Element) A_Dir(attr_dir ...string) *Element
- func (e *Element) A_Dirname(attr_dirname ...string) *Element
- func (e *Element) A_Disabled() *Element
- func (e *Element) A_Download(attr_download ...string) *Element
- func (e *Element) A_Draggable() *Element
- func (e *Element) A_Dropzone(attr_dropzone ...string) *Element
- func (e *Element) A_Enctype(attr_enctype ...string) *Element
- func (e *Element) A_For(attr_for ...string) *Element
- func (e *Element) A_Form(attr_form ...string) *Element
- func (e *Element) A_Formaction(attr_formaction ...string) *Element
- func (e *Element) A_Headers(attr_headers ...string) *Element
- func (e *Element) A_High(attr_high ...string) *Element
- func (e *Element) A_Hreflang(attr_hreflang ...string) *Element
- func (e *Element) A_Http(attr_http ...string) *Element
- func (e *Element) A_Ismap(attr_ismap ...string) *Element
- func (e *Element) A_Kind(attr_kind ...string) *Element
- func (e *Element) A_Label(attr_label ...string) *Element
- func (e *Element) A_Lang(attr_lang ...string) *Element
- func (e *Element) A_List(attr_list ...string) *Element
- func (e *Element) A_Loop(attr_loop ...string) *Element
- func (e *Element) A_Low(attr_low ...string) *Element
- func (e *Element) A_Max(attr_max ...string) *Element
- func (e *Element) A_Maxlength(attr_maxlength ...string) *Element
- func (e *Element) A_Media(attr_media ...string) *Element
- func (e *Element) A_Min(attr_min ...string) *Element
- func (e *Element) A_Multiple(attr_multiple ...string) *Element
- func (e *Element) A_Muted() *Element
- func (e *Element) A_Novalidate() *Element
- func (e *Element) A_Open(attr_open ...string) *Element
- func (e *Element) A_Optimum(attr_optimum ...string) *Element
- func (e *Element) A_Pattern(attr_pattern ...string) *Element
- func (e *Element) A_Placeholder(attr_placeholder ...string) *Element
- func (e *Element) A_Poster(attr_poster ...string) *Element
- func (e *Element) A_Preload(attr_preload bool) *Element
- func (e *Element) A_Readonly() *Element
- func (e *Element) A_Rel(attr_rel string) *Element
- func (e *Element) A_Required() *Element
- func (e *Element) A_Reversed() *Element
- func (e *Element) A_Rows(attr_rows string) *Element
- func (e *Element) A_Rowspan(attr_rowspan string) *Element
- func (e *Element) A_Sandbox(attr_sandbox ...string) *Element
- func (e *Element) A_Scope(attr_scope ...string) *Element
- func (e *Element) A_Selected() *Element
- func (e *Element) A_Shape(attr_shape ...string) *Element
- func (e *Element) A_Size(attr_size ...string) *Element
- func (e *Element) A_Sizes(attr_sizes ...string) *Element
- func (e *Element) A_Span(attr_span ...string) *Element
- func (e *Element) A_Spellcheck(attr_spellcheck bool) *Element
- func (e *Element) A_Srcdoc(attr_srcdoc ...string) *Element
- func (e *Element) A_Srclang(attr_srclang ...string) *Element
- func (e *Element) A_Srcset(attr_srcset ...string) *Element
- func (e *Element) A_Start(attr_start ...string) *Element
- func (e *Element) A_Step(attr_step ...string) *Element
- func (e *Element) A_Tabindex(attr_tabindex ...string) *Element
- func (e *Element) A_Target(attr_target ...string) *Element
- func (e *Element) A_Title(attr_title string) *Element
- func (e *Element) A_Translate(attr_translate bool) *Element
- func (e *Element) A_Type(attr_type string) *Element
- func (e *Element) A_Usemap(attr_usemap ...string) *Element
- func (e *Element) A_Value(attr_value string) *Element
- func (e *Element) A_Wrap(attr_wrap ...string) *Element
- func (e *Element) Abbr(t ...string) *Element
- func (e *Element) AbbrF(innerText string, args ...any) *Element
- func (e *Element) Action(attr_action ...string) *Element
- func (e *Element) Add(elems ...*Element) *Element
- func (e *Element) Address(t ...string) *Element
- func (e *Element) AddressF(innerText string, args ...any) *Element
- func (e *Element) All() Elements
- func (e *Element) Alt(attr_alt string) *Element
- func (e *Element) AppendChild(child *Element)
- func (e *Element) Area(t ...string) *Element
- func (e *Element) AreaF(innerText string, args ...any) *Element
- func (e *Element) Article(t ...string) *Element
- func (e *Element) ArticleF(innerText string, args ...any) *Element
- func (e *Element) Aside(t ...string) *Element
- func (e *Element) AsideF(innerText string, args ...any) *Element
- func (e *Element) AsyncForEach(fn func(*Element) bool)
- func (e *Element) Audio(t ...string) *Element
- func (e *Element) AudioF(innerText string, args ...any) *Element
- func (e *Element) B(t ...string) *Element
- func (e *Element) BF(innerText string, args ...any) *Element
- func (e *Element) BackgroundColor(color string) *Element
- func (e *Element) Bdi(t ...string) *Element
- func (e *Element) BdiF(innerText string, args ...any) *Element
- func (e *Element) Bdo(t ...string) *Element
- func (e *Element) BdoF(innerText string, args ...any) *Element
- func (e *Element) Bgcolor(attr_bgcolor string) *Element
- func (e *Element) Blockquote(t ...string) *Element
- func (e *Element) BlockquoteF(innerText string, args ...any) *Element
- func (e *Element) Body(t ...string) *Element
- func (e *Element) BodyF(innerText string, args ...any) *Element
- func (e *Element) Border(attr_border ...string) *Element
- func (e *Element) Br(t ...string) *Element
- func (e *Element) Button(t ...string) *Element
- func (e *Element) ButtonF(innerText string, args ...any) *Element
- func (e *Element) Canvas(t ...string) *Element
- func (e *Element) CanvasF(innerText string, args ...any) *Element
- func (e *Element) Caption(t ...string) *Element
- func (e *Element) CaptionF(innerText string, args ...any) *Element
- func (e *Element) Charset(attr_charset ...string) *Element
- func (e *Element) Checked() *Element
- func (e *Element) Children() Elements
- func (e *Element) Cite(t ...string) *Element
- func (e *Element) CiteF(innerText string, args ...any) *Element
- func (e *Element) Class(classes ...string) *Element
- func (e *Element) Code(t ...string) *Element
- func (e *Element) CodeF(innerText string, args ...any) *Element
- func (e *Element) Col(t ...string) *Element
- func (e *Element) ColF(innerText string, args ...any) *Element
- func (e *Element) Colgroup(t ...string) *Element
- func (e *Element) ColgroupF(innerText string, args ...any) *Element
- func (e *Element) Color(attr_color string) *Element
- func (e *Element) Command(t ...string) *Element
- func (e *Element) CommandF(innerText string, args ...any) *Element
- func (e *Element) Custom(key string, values ...string) *Element
- func (e *Element) Datalist(t ...string) *Element
- func (e *Element) DatalistF(innerText string, args ...any) *Element
- func (e *Element) Dd(t ...string) *Element
- func (e *Element) DdF(innerText string, args ...any) *Element
- func (e *Element) Del(t ...string) *Element
- func (e *Element) DelAttr(name string) *Element
- func (e *Element) DelF(innerText string, args ...any) *Element
- func (e *Element) DeleteInnerElementByID(id string)
- func (e *Element) Details(t ...string) *Element
- func (e *Element) DetailsF(innerText string, args ...any) *Element
- func (e *Element) Dfn(t ...string) *Element
- func (e *Element) DfnF(innerText string, args ...any) *Element
- func (e *Element) Div(t ...string) *Element
- func (e *Element) DivF(innerText string, args ...any) *Element
- func (e *Element) Dl(t ...string) *Element
- func (e *Element) DlF(innerText string, args ...any) *Element
- func (e *Element) Dt(t ...string) *Element
- func (e *Element) DtF(innerText string, args ...any) *Element
- func (e *Element) Em(t ...string) *Element
- func (e *Element) EmF(innerText string, args ...any) *Element
- func (e *Element) Embed(t ...string) *Element
- func (e *Element) EmbedF(innerText string, args ...any) *Element
- func (e *Element) Fieldset(t ...string) *Element
- func (e *Element) FieldsetF(innerText string, args ...any) *Element
- func (e *Element) Figcaption(t ...string) *Element
- func (e *Element) FigcaptionF(innerText string, args ...any) *Element
- func (e *Element) Figure(t ...string) *Element
- func (e *Element) FigureF(innerText string, args ...any) *Element
- func (e *Element) Footer(t ...string) *Element
- func (e *Element) FooterF(innerText string, args ...any) *Element
- func (e *Element) ForEach(fn func(*Element))
- func (e *Element) Form(t ...string) *Element
- func (e *Element) FormF(innerText string, args ...any) *Element
- func (e *Element) Generate(spacing string, buf Buffer)
- func (e *Element) GetByClassname(className string) Elements
- func (e *Element) GetByID(id string) *Element
- func (e *Element) GetClasses() []string
- func (e *Element) GetID() string
- func (e *Element) GetText() string
- func (e *Element) H1(t ...string) *Element
- func (e *Element) H1F(innerText string, args ...any) *Element
- func (e *Element) H2(t ...string) *Element
- func (e *Element) H2F(innerText string, args ...any) *Element
- func (e *Element) H3(t ...string) *Element
- func (e *Element) H3F(innerText string, args ...any) *Element
- func (e *Element) H4(t ...string) *Element
- func (e *Element) H4F(innerText string, args ...any) *Element
- func (e *Element) H5(t ...string) *Element
- func (e *Element) H5F(innerText string, args ...any) *Element
- func (e *Element) H6(t ...string) *Element
- func (e *Element) H6F(innerText string, args ...any) *Element
- func (e *Element) HTML(templateData any, buffer ...Buffer) string
- func (e *Element) Header(t ...string) *Element
- func (e *Element) HeaderF(innerText string, args ...any) *Element
- func (e *Element) Height(attr_height string) *Element
- func (e *Element) Hidden() *Element
- func (e *Element) Hr() *Element
- func (e *Element) Href(href string) *Element
- func (e *Element) I(t ...string) *Element
- func (e *Element) ID(id string) *Element
- func (e *Element) IF(innerText string, args ...any) *Element
- func (e *Element) Iframe(t ...string) *Element
- func (e *Element) IframeF(innerText string, args ...any) *Element
- func (e *Element) Img(src string, alt ...string) *Element
- func (e *Element) InnerHTML(html string) *Element
- func (e *Element) InnerText(text string) *Element
- func (e *Element) Input(t ...string) *Element
- func (e *Element) InputWithLabel(t ...string) (*Element, *Element, *Element)
- func (e *Element) Ins(t ...string) *Element
- func (e *Element) InsF(innerText string, args ...any) *Element
- func (e *Element) Kbd(t ...string) *Element
- func (e *Element) KbdF(innerText string, args ...any) *Element
- func (e *Element) Keygen(t ...string) *Element
- func (e *Element) KeygenF(innerText string, args ...any) *Element
- func (e *Element) Label(t ...string) *Element
- func (e *Element) LabelF(innerText string, args ...any) *Element
- func (e *Element) Legend(t ...string) *Element
- func (e *Element) LegendF(innerText string, args ...any) *Element
- func (e *Element) Li(t ...string) *Element
- func (e *Element) LiF(innerText string, args ...any) *Element
- func (e *Element) Main(t ...string) *Element
- func (e *Element) MainF(innerText string, args ...any) *Element
- func (e *Element) Map(t ...string) *Element
- func (e *Element) MapF(innerText string, args ...any) *Element
- func (e *Element) Mark(t ...string) *Element
- func (e *Element) MarkF(innerText string, args ...any) *Element
- func (e *Element) Menu(t ...string) *Element
- func (e *Element) MenuF(innerText string, args ...any) *Element
- func (e *Element) Meter(t ...string) *Element
- func (e *Element) MeterF(innerText string, args ...any) *Element
- func (e *Element) Method(attr_method ...string) *Element
- func (e *Element) Name(attr_name string) *Element
- func (e *Element) Nav(t ...string) *Element
- func (e *Element) NavF(innerText string, args ...any) *Element
- func (e *Element) NoClose() *Element
- func (e *Element) Object(t ...string) *Element
- func (e *Element) ObjectF(innerText string, args ...any) *Element
- func (e *Element) Ol(t ...string) *Element
- func (e *Element) OlF(innerText string, args ...any) *Element
- func (e *Element) Onabort(attr_onabort ...string) *Element
- func (e *Element) Onafterprint(attr_onafterprint ...string) *Element
- func (e *Element) Onbeforeprint(attr_onbeforeprint ...string) *Element
- func (e *Element) Onbeforeunload(attr_onbeforeunload ...string) *Element
- func (e *Element) Onblur(attr_onblur ...string) *Element
- func (e *Element) Oncanplay(attr_oncanplay ...string) *Element
- func (e *Element) Oncanplaythrough(attr_oncanplaythrough ...string) *Element
- func (e *Element) Onchange(attr_onchange ...string) *Element
- func (e *Element) Onclick(attr_onclick ...string) *Element
- func (e *Element) Oncontextmenu(attr_oncontextmenu ...string) *Element
- func (e *Element) Oncopy(attr_oncopy ...string) *Element
- func (e *Element) Oncuechange(attr_oncuechange ...string) *Element
- func (e *Element) Oncut(attr_oncut ...string) *Element
- func (e *Element) Ondblclick(attr_ondblclick ...string) *Element
- func (e *Element) Ondrag(attr_ondrag ...string) *Element
- func (e *Element) Ondragend(attr_ondragend ...string) *Element
- func (e *Element) Ondragenter(attr_ondragenter ...string) *Element
- func (e *Element) Ondragleave(attr_ondragleave ...string) *Element
- func (e *Element) Ondragover(attr_ondragover ...string) *Element
- func (e *Element) Ondragstart(attr_ondragstart ...string) *Element
- func (e *Element) Ondrop(attr_ondrop ...string) *Element
- func (e *Element) Ondurationchange(attr_ondurationchange ...string) *Element
- func (e *Element) Onemptied(attr_onemptied ...string) *Element
- func (e *Element) Onended(attr_onended ...string) *Element
- func (e *Element) Onerror(attr_onerror ...string) *Element
- func (e *Element) Onfocus(attr_onfocus ...string) *Element
- func (e *Element) Onhashchange(attr_onhashchange ...string) *Element
- func (e *Element) Oninput(attr_oninput ...string) *Element
- func (e *Element) Oninvalid(attr_oninvalid ...string) *Element
- func (e *Element) Onkeydown(attr_onkeydown ...string) *Element
- func (e *Element) Onkeypress(attr_onkeypress ...string) *Element
- func (e *Element) Onkeyup(attr_onkeyup ...string) *Element
- func (e *Element) Onload(attr_onload ...string) *Element
- func (e *Element) Onloadeddata(attr_onloadeddata ...string) *Element
- func (e *Element) Onloadedmetadata(attr_onloadedmetadata ...string) *Element
- func (e *Element) Onloadstart(attr_onloadstart ...string) *Element
- func (e *Element) Onmousedown(attr_onmousedown ...string) *Element
- func (e *Element) Onmousemove(attr_onmousemove ...string) *Element
- func (e *Element) Onmouseout(attr_onmouseout ...string) *Element
- func (e *Element) Onmouseover(attr_onmouseover ...string) *Element
- func (e *Element) Onmouseup(attr_onmouseup ...string) *Element
- func (e *Element) Onmousewheel(attr_onmousewheel ...string) *Element
- func (e *Element) Onoffline(attr_onoffline ...string) *Element
- func (e *Element) Ononline(attr_ononline ...string) *Element
- func (e *Element) Onpagehide(attr_onpagehide ...string) *Element
- func (e *Element) Onpageshow(attr_onpageshow ...string) *Element
- func (e *Element) Onpaste(attr_onpaste ...string) *Element
- func (e *Element) Onpause(attr_onpause ...string) *Element
- func (e *Element) Onplay(attr_onplay ...string) *Element
- func (e *Element) Onplaying(attr_onplaying ...string) *Element
- func (e *Element) Onpopstate(attr_onpopstate ...string) *Element
- func (e *Element) Onprogress(attr_onprogress ...string) *Element
- func (e *Element) Onratechange(attr_onratechange ...string) *Element
- func (e *Element) Onreset(attr_onreset ...string) *Element
- func (e *Element) Onresize(attr_onresize ...string) *Element
- func (e *Element) Onscroll(attr_onscroll ...string) *Element
- func (e *Element) Onsearch(attr_onsearch ...string) *Element
- func (e *Element) Onseeked(attr_onseeked ...string) *Element
- func (e *Element) Onseeking(attr_onseeking ...string) *Element
- func (e *Element) Onselect(attr_onselect ...string) *Element
- func (e *Element) Onshow(attr_onshow ...string) *Element
- func (e *Element) Onstalled(attr_onstalled ...string) *Element
- func (e *Element) Onstorage(attr_onstorage ...string) *Element
- func (e *Element) Onsubmit(attr_onsubmit ...string) *Element
- func (e *Element) Onsuspend(attr_onsuspend ...string) *Element
- func (e *Element) Ontimeupdate(attr_ontimeupdate ...string) *Element
- func (e *Element) Ontoggle(attr_ontoggle ...string) *Element
- func (e *Element) Onunload(attr_onunload ...string) *Element
- func (e *Element) Onvolumechange(attr_onvolumechange ...string) *Element
- func (e *Element) Onwaiting(attr_onwaiting ...string) *Element
- func (e *Element) Onwheel(attr_onwheel ...string) *Element
- func (e *Element) Optgroup(t ...string) *Element
- func (e *Element) OptgroupF(innerText string, args ...any) *Element
- func (e *Element) Option(t ...string) *Element
- func (e *Element) OptionF(innerText string, args ...any) *Element
- func (e *Element) Output(t ...string) *Element
- func (e *Element) OutputF(innerText string, args ...any) *Element
- func (e *Element) P(t ...string) *Element
- func (e *Element) PF(innerText string, args ...any) *Element
- func (e *Element) Param(t ...string) *Element
- func (e *Element) ParamF(innerText string, args ...any) *Element
- func (e *Element) Pre(t ...string) *Element
- func (e *Element) PreF(innerText string, args ...any) *Element
- func (e *Element) Progress(t ...string) *Element
- func (e *Element) ProgressF(innerText string, args ...any) *Element
- func (e *Element) Q(t ...string) *Element
- func (e *Element) QF(innerText string, args ...any) *Element
- func (e *Element) RenderBuffer(buf Buffer, templateData any) Buffer
- func (e *Element) Rp(t ...string) *Element
- func (e *Element) RpF(innerText string, args ...any) *Element
- func (e *Element) Rt(t ...string) *Element
- func (e *Element) RtF(innerText string, args ...any) *Element
- func (e *Element) Ruby(t ...string) *Element
- func (e *Element) RubyF(innerText string, args ...any) *Element
- func (e *Element) S(t ...string) *Element
- func (e *Element) SF(innerText string, args ...any) *Element
- func (e *Element) Samp(t ...string) *Element
- func (e *Element) SampF(innerText string, args ...any) *Element
- func (e *Element) Script(src string, typ ...string) *Element
- func (e *Element) ScriptInline(sourceCode string, typ ...string) *Element
- func (e *Element) Section(t ...string) *Element
- func (e *Element) SectionF(innerText string, args ...any) *Element
- func (e *Element) Select(name string, listItems []any, deflt ...string) *Element
- func (e *Element) SetAttr(name string, values ...string) *Element
- func (e *Element) SetBool(name string, val bool) *Element
- func (e *Element) SetSemiColon(name string, values ...string) *Element
- func (e *Element) Small(t ...string) *Element
- func (e *Element) SmallF(innerText string, args ...any) *Element
- func (e *Element) Source(t ...string) *Element
- func (e *Element) SourceF(innerText string, args ...any) *Element
- func (e *Element) Span(t ...string) *Element
- func (e *Element) SpanF(innerText string, args ...any) *Element
- func (e *Element) Src(src string) *Element
- func (e *Element) String() string
- func (e *Element) Strong(t ...string) *Element
- func (e *Element) StrongF(innerText string, args ...any) *Element
- func (e *Element) Style(styles ...string) *Element
- func (e *Element) StyleBlock(sourceCode ...string) *Element
- func (e *Element) StyleSheet(src string, rel string) *Element
- func (e *Element) Sub(t ...string) *Element
- func (e *Element) SubF(innerText string, args ...any) *Element
- func (e *Element) Summary(t ...string) *Element
- func (e *Element) SummaryF(innerText string, args ...any) *Element
- func (e *Element) Sup(t ...string) *Element
- func (e *Element) SupF(innerText string, args ...any) *Element
- func (e *Element) Table(t ...string) *Element
- func (e *Element) TableF(innerText string, args ...any) *Element
- func (e *Element) Tbody(t ...string) *Element
- func (e *Element) TbodyF(innerText string, args ...any) *Element
- func (e *Element) Td(t ...string) *Element
- func (e *Element) TdF(innerText string, args ...any) *Element
- func (e *Element) TextAfter() *Element
- func (e *Element) Textarea(t ...string) *Element
- func (e *Element) TextareaF(innerText string, args ...any) *Element
- func (e *Element) Tfoot(t ...string) *Element
- func (e *Element) TfootF(innerText string, args ...any) *Element
- func (e *Element) Th(t ...string) *Element
- func (e *Element) ThF(innerText string, args ...any) *Element
- func (e *Element) Thead(t ...string) *Element
- func (e *Element) TheadF(innerText string, args ...any) *Element
- func (e *Element) Time(t ...string) *Element
- func (e *Element) TimeF(innerText string, args ...any) *Element
- func (e *Element) Tr(t ...string) *Element
- func (e *Element) TrF(innerText string, args ...any) *Element
- func (e *Element) Track(t ...string) *Element
- func (e *Element) TrackF(innerText string, args ...any) *Element
- func (e *Element) U(t ...string) *Element
- func (e *Element) UF(innerText string, args ...any) *Element
- func (e *Element) Ul(t ...string) *Element
- func (e *Element) UlF(innerText string, args ...any) *Element
- func (e *Element) Var(t ...string) *Element
- func (e *Element) VarF(innerText string, args ...any) *Element
- func (e *Element) Video(t ...string) *Element
- func (e *Element) VideoF(innerText string, args ...any) *Element
- func (e *Element) Wbr(t ...string) *Element
- func (e *Element) WbrF(innerText string, args ...any) *Element
- func (e *Element) Width(attr_width string) *Element
- type Elements
- type FORMTYPES
- type URL
- type URLs
Constants ¶
const SPACING string = " "
Variables ¶
This section is empty.
Functions ¶
func FormatIfDateTime ¶
func InputWithLabel ¶
TYPE -> (NAME, ID) -> PLACEHOLDER -> VALUE -> TEXT
func ReflectModelName ¶
func SetValueStrict ¶ added in v1.2.1
Types ¶
type Buffer ¶
type Buffer interface { WriteString(string) (int, error) String() string Reset() Len() int Write(p []byte) (int, error) Grow(n int) }
func ParseToTemplate ¶
type Element ¶
type Element struct { Type string // contains filtered or unexported fields }
Element is a single HTML element.
func Blockquote ¶
func BlockquoteF ¶ added in v1.3.3
Blockquote Element in Sprintf format: (Autogenerated)
func Figcaption ¶
func FigcaptionF ¶ added in v1.3.3
Figcaption Element in Sprintf format: (Autogenerated)
func ScriptInline ¶
func StructToForm ¶
func StyleBlock ¶
func StyleSheet ¶
func (*Element) A_Accesskey ¶
Accesskey is the attr_accesskey attribute. (Autogenerated)
func (*Element) A_Autocomplete ¶
Autocomplete is the attr_autocomplete attribute. (Autogenerated)
func (*Element) A_Autofocus ¶
Autofocus is the attr_autofocus attribute. (Autogenerated)
func (*Element) A_Autoplay ¶
Autoplay is the attr_autoplay attribute. (Autogenerated)
func (*Element) A_Contenteditable ¶
Contenteditable is the attr_contenteditable attribute. (Autogenerated)
func (*Element) A_Contextmenu ¶
Contextmenu is the attr_contextmenu attribute. (Autogenerated)
func (*Element) A_Controls ¶
Controls is the attr_controls attribute. (Autogenerated)
func (*Element) A_Datetime ¶
Datetime is the attr_datetime attribute. (Autogenerated)
func (*Element) A_Disabled ¶
Disabled is the attr_disabled attribute. (Autogenerated)
func (*Element) A_Download ¶
Download is the attr_download attribute. (Autogenerated)
func (*Element) A_Draggable ¶
Draggable is the attr_draggable attribute. (Autogenerated)
func (*Element) A_Dropzone ¶
Dropzone is the attr_dropzone attribute. (Autogenerated)
func (*Element) A_Formaction ¶
Formaction is the attr_formaction attribute. (Autogenerated)
func (*Element) A_Hreflang ¶
Hreflang is the attr_hreflang attribute. (Autogenerated)
func (*Element) A_Maxlength ¶
Maxlength is the attr_maxlength attribute. (Autogenerated)
func (*Element) A_Multiple ¶
Multiple is the attr_multiple attribute. (Autogenerated)
func (*Element) A_Novalidate ¶
Novalidate is the attr_novalidate attribute. (Autogenerated)
func (*Element) A_Placeholder ¶
Placeholder is the attr_placeholder attribute. (Autogenerated)
func (*Element) A_Readonly ¶
Readonly is the attr_readonly attribute. (Autogenerated)
func (*Element) A_Required ¶
Required is the attr_required attribute. (Autogenerated)
func (*Element) A_Reversed ¶
Reversed is the attr_reversed attribute. (Autogenerated)
func (*Element) A_Selected ¶
Selected is the attr_selected attribute. (Autogenerated)
func (*Element) A_Spellcheck ¶
Spellcheck is the attr_spellcheck attribute. (Autogenerated)
func (*Element) A_Tabindex ¶
Tabindex is the attr_tabindex attribute. (Autogenerated)
func (*Element) A_Translate ¶
Translate is the attr_translate attribute. (Autogenerated)
func (*Element) AsyncForEach ¶ added in v1.0.5
Loop over all inner elements recursively asynchronously.
func (*Element) BackgroundColor ¶
func (*Element) Blockquote ¶
func (*Element) BlockquoteF ¶ added in v1.3.3
Blockquote Element in Sprintf format: (Autogenerated)
func (*Element) DeleteInnerElementByID ¶
Delete inner elements by ID
func (*Element) Figcaption ¶
func (*Element) FigcaptionF ¶ added in v1.3.3
Figcaption Element in Sprintf format: (Autogenerated)
func (*Element) GetByClassname ¶
Get inner elements by classname
func (*Element) InputWithLabel ¶
func (*Element) Onafterprint ¶
Onafterprint is the attr_onafterprint attribute. (Autogenerated)
func (*Element) Onbeforeprint ¶
Onbeforeprint is the attr_onbeforeprint attribute. (Autogenerated)
func (*Element) Onbeforeunload ¶
Onbeforeunload is the attr_onbeforeunload attribute. (Autogenerated)
func (*Element) Oncanplaythrough ¶
Oncanplaythrough is the attr_oncanplaythrough attribute. (Autogenerated)
func (*Element) Oncontextmenu ¶
Oncontextmenu is the attr_oncontextmenu attribute. (Autogenerated)
func (*Element) Oncuechange ¶
Oncuechange is the attr_oncuechange attribute. (Autogenerated)
func (*Element) Ondblclick ¶
Ondblclick is the attr_ondblclick attribute. (Autogenerated)
func (*Element) Ondragenter ¶
Ondragenter is the attr_ondragenter attribute. (Autogenerated)
func (*Element) Ondragleave ¶
Ondragleave is the attr_ondragleave attribute. (Autogenerated)
func (*Element) Ondragover ¶
Ondragover is the attr_ondragover attribute. (Autogenerated)
func (*Element) Ondragstart ¶
Ondragstart is the attr_ondragstart attribute. (Autogenerated)
func (*Element) Ondurationchange ¶
Ondurationchange is the attr_ondurationchange attribute. (Autogenerated)
func (*Element) Onhashchange ¶
Onhashchange is the attr_onhashchange attribute. (Autogenerated)
func (*Element) Onkeypress ¶
Onkeypress is the attr_onkeypress attribute. (Autogenerated)
func (*Element) Onloadeddata ¶
Onloadeddata is the attr_onloadeddata attribute. (Autogenerated)
func (*Element) Onloadedmetadata ¶
Onloadedmetadata is the attr_onloadedmetadata attribute. (Autogenerated)
func (*Element) Onloadstart ¶
Onloadstart is the attr_onloadstart attribute. (Autogenerated)
func (*Element) Onmousedown ¶
Onmousedown is the attr_onmousedown attribute. (Autogenerated)
func (*Element) Onmousemove ¶
Onmousemove is the attr_onmousemove attribute. (Autogenerated)
func (*Element) Onmouseout ¶
Onmouseout is the attr_onmouseout attribute. (Autogenerated)
func (*Element) Onmouseover ¶
Onmouseover is the attr_onmouseover attribute. (Autogenerated)
func (*Element) Onmousewheel ¶
Onmousewheel is the attr_onmousewheel attribute. (Autogenerated)
func (*Element) Onpagehide ¶
Onpagehide is the attr_onpagehide attribute. (Autogenerated)
func (*Element) Onpageshow ¶
Onpageshow is the attr_onpageshow attribute. (Autogenerated)
func (*Element) Onpopstate ¶
Onpopstate is the attr_onpopstate attribute. (Autogenerated)
func (*Element) Onprogress ¶
Onprogress is the attr_onprogress attribute. (Autogenerated)
func (*Element) Onratechange ¶
Onratechange is the attr_onratechange attribute. (Autogenerated)
func (*Element) Ontimeupdate ¶
Ontimeupdate is the attr_ontimeupdate attribute. (Autogenerated)
func (*Element) Onvolumechange ¶
Onvolumechange is the attr_onvolumechange attribute. (Autogenerated)
func (*Element) RenderBuffer ¶
Render element to buffer
func (*Element) Script ¶
Append a script to an element. If the GOOS == JS and GOARCH == wasm, the script will be appended to the document head instead.
func (*Element) ScriptInline ¶
Append a script with sourcecode to an element.
- If the GOOS == JS and GOARCH == wasm, the script will be appended to the document head instead.
- Returns nil if GOOS == JS and GOARCH == wasm.
func (*Element) SetSemiColon ¶
Set attributes split by a semicolon.
func (*Element) StyleBlock ¶
type Elements ¶
type Elements []*Element
List of multiple elements
func (Elements) RecursiveForEach ¶
Loop recursively over each element in Elements. Return false to stop the loop
type FORMTYPES ¶
type FORMTYPES string
const ( FORMTYP_TEXT FORMTYPES = "text" FORMTYP_CHECKBOX FORMTYPES = "checkbox" FORMTYP_NUMBER FORMTYPES = "number" FORMTYP_DATETIME FORMTYPES = "datetime-local" FORMTYP_FILE FORMTYPES = "file" FORMTYP_STRUCT FORMTYPES = "struct" // FORMTYP_LIST FORMTYPES = "select" FORMTYP_INVALID FORMTYPES = "text" )