Documentation
¶
Index ¶
- func A(children ...IsElement) *anchor
- func Abbr(child *HtmlElement) *abbreviation
- func Address(child ...IsElement) *address
- func Area() *area
- func Article(children ...IsElement) *article
- func Aside(child ...IsElement) *aside
- func Audio(child ...IsElement) *audio
- func B(child *HtmlElement) *bold
- func Base() *base
- func Bdi(child *HtmlElement) *bdi
- func Bdo() *bdo
- func Blockquote(child ...IsElement) *blockquote
- func Body(children ...IsElement) *body
- func Br() *br
- func Button(children ...IsElement) *button
- func Canvas(message string) *canvas
- func Caption(child *HtmlElement) *caption
- func Cite(child *HtmlElement) *cite
- func Code(child *HtmlElement) *code
- func Col(child *HtmlElement) *col
- func ColGroup(child *HtmlElement) *colgroup
- func Data(child *HtmlElement) *data
- func DataList(child *HtmlElement) *datalist
- func Dd(child *HtmlElement) *dd
- func Del(child *HtmlElement) *del
- func Details(children ...IsElement) *details
- func Dfn(child *HtmlElement) *dfn
- func Dialog(child *HtmlElement) *dialog
- func Div(children ...IsElement) *div
- func Dl(children ...IsElement) *dl
- func Dt(children IsElement) *dt
- func Em(children IsElement) *em
- func FieldSet(children ...IsElement) *fieldset
- func FigCaption(children IsElement) *figcaption
- func Figure(children ...IsElement) *figure
- func Footer(children ...IsElement) *footer
- func Form(children ...IsForm) *form
- func H1(children ...IsElement) *heading
- func H2(children ...IsElement) *heading
- func H3(children ...IsElement) *heading
- func H4(children ...IsElement) *heading
- func H5(children ...IsElement) *heading
- func H6(children ...IsElement) *heading
- func HGroup(children ...IsElement) *hgroup
- func Head(children ...IsHeadElement) *head
- func Header(children ...IsElement) *header
- func Hr() *hr
- func Html(children ...IsElement) *htmlTag
- func I(children IsElement) *i
- func Iframe() *iframe
- func Img(children IsElement) *img
- func Input() *input
- func Ins(children IsElement) *ins
- func Kbd(children IsElement) *kbd
- func Label(children IsElement) *label
- func Legend(children IsElement) *legend
- func Li(children ...IsElement) *li
- func Link() *link
- func Main(children ...IsElement) *main
- func Map(children ...IsElement) *mapElement
- func Mark(children IsElement) *mark
- func Menu(children IsElement) *menu
- func Meta() *meta
- func Meter(children IsElement) *meter
- func Nav(children ...IsElement) *nav
- func NoScript(children IsElement) *noscript
- func Object(children IsElement) *object
- func Ol(children ...IsElement) *ol
- func OptGroup(children ...IsElement) *optgroup
- func Option(children ...IsElement) *option
- func Output(children ...IsElement) *output
- func P(children ...IsElement) *p
- func Param() *param
- func Picture(children ...IsElement) *picture
- func Pre(children IsElement) *pre
- func Progress(children IsElement) *progress
- func Q(children IsElement) *q
- func Rp(children IsElement) *rp
- func Rt(children IsElement) *rt
- func Ruby(children ...IsElement) *ruby
- func S(children IsElement) *s
- func Samp(children ...IsElement) *samp
- func Script() *script
- func Search(children ...IsElement) *search
- func Section(children ...IsElement) *section
- func Select(children ...IsElement) *selectEl
- func Small(children ...IsElement) *small
- func Source() *source
- func Span(children ...IsElement) *span
- func Strong(children ...IsElement) *strong
- func Style(text string) *styl
- func Sub(children ...IsElement) *sub
- func Summary(children ...IsElement) *summary
- func Sup(children ...IsElement) *sup
- func TBody(children ...IsElement) *tbody
- func TFoot(children ...IsElement) *tfoot
- func THead(children ...IsElement) *thead
- func Table(children ...IsElement) *table
- func Td(children ...IsElement) *td
- func Template(children ...IsElement) *template
- func TextArea(children ...IsElement) *textarea
- func Th(children ...IsElement) *th
- func Time(children ...IsElement) *timeEl
- func Title(text string) *title
- func Tr(children ...IsElement) *tr
- func Track(children ...IsElement) *track
- func U(children ...IsElement) *uEl
- func Ul(children ...IsElement) *ul
- func Var(children ...IsElement) *varEl
- func Video(children ...IsElement) *video
- func Wbr(children ...IsElement) *wbr
- type AnchorRel
- type AnchorTarget
- type AreaShape
- type AudioPreload
- type AutoComplete
- type ButtonType
- type CrossOrigin
- type Direction
- type EncType
- type FormMethod
- type FormMinMaxValue
- type FormRel
- type FormTarget
- type HtmlElement
- func (e *HtmlElement) AccessKey(character string) *HtmlElement
- func (e *HtmlElement) AddAttribute(key string, value string)
- func (e *HtmlElement) AddAttributeBool(key string)
- func (e *HtmlElement) Aria(aria string, value string) *HtmlElement
- func (e *HtmlElement) Children(children ...IsElement) *HtmlElement
- func (e *HtmlElement) Class(classnames ...string) *HtmlElement
- func (e *HtmlElement) ContentEditable(editable bool) *HtmlElement
- func (e *HtmlElement) Data(name string, value string) *HtmlElement
- func (e *HtmlElement) Dir(dir Direction) *HtmlElement
- func (e *HtmlElement) Draggable(draggable bool) *HtmlElement
- func (e *HtmlElement) Element() *HtmlElement
- func (e *HtmlElement) EnterKeyHint(hint KeyHint) *HtmlElement
- func (e *HtmlElement) GetNode() *html.Node
- func (e *HtmlElement) Hidden() *HtmlElement
- func (e *HtmlElement) Id(id string) *HtmlElement
- func (e *HtmlElement) Inert() *HtmlElement
- func (e *HtmlElement) InputMode(mode InputMode) *HtmlElement
- func (e *HtmlElement) Lang(langcode LanguageCode) *HtmlElement
- func (e *HtmlElement) Popover() *HtmlElement
- func (e *HtmlElement) Render() string
- func (e *HtmlElement) Spellcheck(check bool) *HtmlElement
- func (e *HtmlElement) Style(props ...styles.ApplyProp) *HtmlElement
- func (e *HtmlElement) StyleClassName(className string) *HtmlElement
- func (e *HtmlElement) TabIndex(number int) *HtmlElement
- func (e *HtmlElement) Title(text string) *HtmlElement
- func (e *HtmlElement) Translate(translate TranslateOptions) *HtmlElement
- type HttpEquiv
- type IframeReferrerPolicy
- type IframeSandbox
- type ImageReferrerPolicy
- type InputAccept
- type InputAutoCompleteValue
- type InputFileExtension
- type InputMediaType
- type InputMode
- type InputType
- type IsElement
- type IsForm
- type IsHeadElement
- type KeyHint
- type LanguageCode
- type LinkRelationship
- type Loading
- type MetaName
- type PopoverTargetAction
- type RefererPolicy
- type TargetAction
- type TextAreaWrap
- type ThScope
- type TrackKind
- type TranslateOptions
- type VideoPreload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abbr ¶
func Abbr(child *HtmlElement) *abbreviation
func B ¶
func B(child *HtmlElement) *bold
func Bdi ¶
func Bdi(child *HtmlElement) *bdi
func Blockquote ¶
func Blockquote(child ...IsElement) *blockquote
func Caption ¶
func Caption(child *HtmlElement) *caption
func Cite ¶
func Cite(child *HtmlElement) *cite
func Code ¶
func Code(child *HtmlElement) *code
func Col ¶
func Col(child *HtmlElement) *col
func ColGroup ¶
func ColGroup(child *HtmlElement) *colgroup
func Data ¶
func Data(child *HtmlElement) *data
func DataList ¶
func DataList(child *HtmlElement) *datalist
func Dd ¶
func Dd(child *HtmlElement) *dd
func Del ¶
func Del(child *HtmlElement) *del
func Dfn ¶
func Dfn(child *HtmlElement) *dfn
func Dialog ¶
func Dialog(child *HtmlElement) *dialog
func FigCaption ¶
func FigCaption(children IsElement) *figcaption
func Head ¶
func Head(children ...IsHeadElement) *head
Types ¶
type AnchorRel ¶
type AnchorRel string
const ( Alternate AnchorRel = "alternate" // Provides a link to an alternate representation of the document (i.e. print page, translated or mirror) Author AnchorRel = "author" // Provides a link to the author of the document Bookmark AnchorRel = "bookmark" // Permanent URL used for bookmarking External AnchorRel = "external" // Indicates that the referenced document is not part of the same site as the current document Help AnchorRel = "help" // Provides a link to a help document License AnchorRel = "license" // Provides a link to licensing information for the document Next AnchorRel = "next" // Provides a link to the next document in the series Nofollow AnchorRel = "nofollow" // Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link) Noopener AnchorRel = "noopener" // Requires that any browsing context created by following the hyperlink must not have an opener browsing context Noreferrer AnchorRel = "noreferrer" // Makes the referrer unknown. No referer header will be included when the user clicks the hyperlink Prev AnchorRel = "prev" // The previous document in a selection SearchRel AnchorRel = "search" // Links to a search tool for the document Tag AnchorRel = "tag" // A tag (keyword) for the current document )
type AnchorTarget ¶
type AnchorTarget string
const ( TargetBlank AnchorTarget = "_blank" // Opens the linked document in a new window or tab TargetSelf AnchorTarget = "_self" // Opens the linked document in the same frame as it was clicked (this is default) TargetParent AnchorTarget = "_parent" // Opens the linked document in the parent frame TargetTop AnchorTarget = "_top" // Opens the linked document in the full body of the window )
type AudioPreload ¶
type AudioPreload string
const ( AudioPreloadAuto AudioPreload = "auto" AudioPreloadMetadata AudioPreload = "metadata" AudioPreloadNone AudioPreload = "none" )
type AutoComplete ¶
type AutoComplete bool
func (AutoComplete) String ¶
func (m AutoComplete) String() string
type ButtonType ¶
type ButtonType string
const ( ButtonTypeButton ButtonType = "button" ButtonTypeReset ButtonType = "reset" ButtonTypeSubmit ButtonType = "submit" )
type CrossOrigin ¶
type CrossOrigin string
const ( CrossOriginAnonymous CrossOrigin = "anonymous" CrossOriginUseCredentials CrossOrigin = "use-credentials" )
type EncType ¶
type EncType string
const ( XWWWFormUrlEncoded EncType = "application/x-www-form-urlencoded" // Default. All characters are encoded before sent (spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values) MultiPartFormData EncType = "multipart/form-data" // This value is necessary if the user will upload a file through the form TextPlainEncoding EncType = "text/plain" // Sends data without any encoding at all. Not recommended )
type FormMethod ¶
type FormMethod string
const ( GetFormMethod FormMethod = "get" // Default. Appends the form data to the URL in name/value pairs: URL?name=value&name=value PostFormMethod FormMethod = "post" // Sends the form data as an HTTP post transaction DialogFormMethod FormMethod = "dialog" // Sends the form data as a modal dialog box )
type FormMinMaxValue ¶
type FormMinMaxValue int
func (FormMinMaxValue) String ¶
func (i FormMinMaxValue) String() string
type FormRel ¶
type FormRel string
const ( FormRelExternal FormRel = "external" // Specifies that the referenced document is not a part of the current site FormRelHelp FormRel = "help" // Links to a help document FormRelLicense FormRel = "license" // Links to copyright information for the document FormRelNext FormRel = "next" // The next document in a selection FormRelNofollow FormRel = "nofollow" // Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link) FormRelNoOpener FormRel = "noopener" // FormRelNoReferrer FormRel = "noreferrer" // Specifies that the browser should not send a HTTP referrer header if the user follows the hyperlink FormRelOpener FormRel = "opener" // FormRelPrev FormRel = "prev" // The previous document in a selection FormRelSearch FormRel = "search" // Links to a search tool for the document )
type FormTarget ¶
type FormTarget string
const ( FormTargetBlank FormTarget = "_blank" //The response is displayed in a new window or tab FormTargetSelf FormTarget = "_self" //The response is displayed in the same frame (this is default) FormTargetParent FormTarget = "_parent" //The response is displayed in the parent frame FormTargetTop FormTarget = "_top" //The response is displayed in the full body of the window )
type HtmlElement ¶
type HtmlElement struct {
// contains filtered or unexported fields
}
func CreateElementByNode ¶
func CreateElementByNode(node *html.Node) *HtmlElement
func Element ¶
func Element(el IsElement) *HtmlElement
func Text ¶
func Text(text string) *HtmlElement
func (*HtmlElement) AccessKey ¶
func (e *HtmlElement) AccessKey(character string) *HtmlElement
func (*HtmlElement) AddAttribute ¶
func (e *HtmlElement) AddAttribute(key string, value string)
func (*HtmlElement) AddAttributeBool ¶
func (e *HtmlElement) AddAttributeBool(key string)
func (*HtmlElement) Aria ¶
func (e *HtmlElement) Aria(aria string, value string) *HtmlElement
func (*HtmlElement) Children ¶
func (e *HtmlElement) Children(children ...IsElement) *HtmlElement
func (*HtmlElement) Class ¶
func (e *HtmlElement) Class(classnames ...string) *HtmlElement
func (*HtmlElement) ContentEditable ¶
func (e *HtmlElement) ContentEditable(editable bool) *HtmlElement
func (*HtmlElement) Data ¶
func (e *HtmlElement) Data(name string, value string) *HtmlElement
func (*HtmlElement) Dir ¶
func (e *HtmlElement) Dir(dir Direction) *HtmlElement
func (*HtmlElement) Draggable ¶
func (e *HtmlElement) Draggable(draggable bool) *HtmlElement
func (*HtmlElement) Element ¶
func (e *HtmlElement) Element() *HtmlElement
func (*HtmlElement) EnterKeyHint ¶
func (e *HtmlElement) EnterKeyHint(hint KeyHint) *HtmlElement
func (*HtmlElement) GetNode ¶
func (e *HtmlElement) GetNode() *html.Node
func (*HtmlElement) Hidden ¶
func (e *HtmlElement) Hidden() *HtmlElement
func (*HtmlElement) Id ¶
func (e *HtmlElement) Id(id string) *HtmlElement
func (*HtmlElement) Inert ¶
func (e *HtmlElement) Inert() *HtmlElement
func (*HtmlElement) InputMode ¶
func (e *HtmlElement) InputMode(mode InputMode) *HtmlElement
func (*HtmlElement) Lang ¶
func (e *HtmlElement) Lang(langcode LanguageCode) *HtmlElement
func (*HtmlElement) Popover ¶
func (e *HtmlElement) Popover() *HtmlElement
func (*HtmlElement) Render ¶
func (e *HtmlElement) Render() string
func (*HtmlElement) Spellcheck ¶
func (e *HtmlElement) Spellcheck(check bool) *HtmlElement
func (*HtmlElement) Style ¶
func (e *HtmlElement) Style(props ...styles.ApplyProp) *HtmlElement
func (*HtmlElement) StyleClassName ¶ added in v0.0.15
func (e *HtmlElement) StyleClassName(className string) *HtmlElement
func (*HtmlElement) TabIndex ¶
func (e *HtmlElement) TabIndex(number int) *HtmlElement
func (*HtmlElement) Title ¶
func (e *HtmlElement) Title(text string) *HtmlElement
func (*HtmlElement) Translate ¶
func (e *HtmlElement) Translate(translate TranslateOptions) *HtmlElement
type IframeReferrerPolicy ¶
type IframeReferrerPolicy string
const ( IframeReferrerPolicyNoReferrer IframeReferrerPolicy = "no-referrer" IframeReferrerPolicyNoReferrerWhenDowngrade IframeReferrerPolicy = "no-referrer-when-downgrade" IframeReferrerPolicyOrigin IframeReferrerPolicy = "origin" IframeReferrerPolicyOriginWhenCrossOrigin IframeReferrerPolicy = "origin-when-cross-origin" IframeReferrerPolicySameOrigin IframeReferrerPolicy = "same-origin" IframeReferrerPolicyStrictOrigin IframeReferrerPolicy = "strict-origin" IframeReferrerPolicyStrictOriginWhenCrossOrigin IframeReferrerPolicy = "strict-origin-when-cross-origin" IframeReferrerPolicyUnsafeUrl IframeReferrerPolicy = "unsafe-url" )
type IframeSandbox ¶
type IframeSandbox string
const ( IframeSandboxAllowForms IframeSandbox = "allow-forms" IframeSandboxAllowModals IframeSandbox = "allow-modals" IframeSandboxAllowOrientationLock IframeSandbox = "allow-orientation-lock" IframeSandboxAllowPointerLock IframeSandbox = "allow-pointer-lock" IframeSandboxAllowPopups IframeSandbox = "allow-popups" IframeSandboxAllowPopupsToEscapeSandbox IframeSandbox = "allow-popups-to-escape-sandbox" IframeSandboxAllowPresentation IframeSandbox = "allow-presentation" IframeSandboxAllowSameOrigin IframeSandbox = "allow-same-origin" IframeSandboxAllowScripts IframeSandbox = "allow-scripts" )
type ImageReferrerPolicy ¶
type ImageReferrerPolicy string
const ( ImageNoReferrer ImageReferrerPolicy = "no-referrer" // No referrer information is sent ImageNoReferrerWhenDowngrade ImageReferrerPolicy = "no-referrer-when-downgrade" // Default. The referrer header will not be sent to origins without HTTPS ImageReferrerOrigin ImageReferrerPolicy = "origin" // Sends the origin (scheme, host, and port) of the document ImageReferrerOriginWhenCrossOrigin ImageReferrerPolicy = "origin-when-cross-origin" // For cross-origin requests: Send only scheme, host, and port. For same-origin requests: Also include the path ImageUnsafeUrl ImageReferrerPolicy = "unsafe-url" // Send origin, path and query string (but not fragment, password, or username). This value is considered unsafe )
type InputAccept ¶
type InputAccept string
const ( InputAudio InputAccept = "audio/*" InputVideo InputAccept = "video/*" InputImage InputAccept = "image/*" )
func (InputAccept) IsInputAccept ¶
func (InputAccept) IsInputAccept()
type InputAutoCompleteValue ¶
type InputAutoCompleteValue string
const ( InputAutoCompleteOn InputAutoCompleteValue = "on" // Default. Autocomplete is on (enabled) InputAutoCompleteOff InputAutoCompleteValue = "off" // Autocomplete is off (disabled) InputAutoCompleteAddressLine1 InputAutoCompleteValue = "address-line1" //Expects the first line of the street address InputAutoCompleteAddressLine2 InputAutoCompleteValue = "address-line2" // Expects the second line of the street address InputAutoCompleteAddressLine3 InputAutoCompleteValue = "address-line3" // Expects the third line of the street address InputAutoCompleteAddressLevel1 InputAutoCompleteValue = "address-level1" // Expects the first level of the address, e.g. the county InputAutoCompleteAddressLevel2 InputAutoCompleteValue = "address-level2" // Expects the second level of the address, e.g. the city InputAutoCompleteAddressLevel3 InputAutoCompleteValue = "address-level3" // Expects the third level of the address InputAutoCompleteAddressLevel4 InputAutoCompleteValue = "address-level4" // Expects the fourth level of the address InputAutoCompleteStreetAddress InputAutoCompleteValue = "street-address" // Expects the full street address InputAutoCompleteCountry InputAutoCompleteValue = "country" // Expects the country code InputAutoCompleteCountryName InputAutoCompleteValue = "country-name" // Expects the country name InputAutoCompletePostalCode InputAutoCompleteValue = "postal-code" // Expects the post code InputAutoCompleteName InputAutoCompleteValue = "name" // Expects the full name InputAutoCompleteAdditionalName InputAutoCompleteValue = "additional-name" // Expects the middle name InputAutoCompleteFamilyName InputAutoCompleteValue = "family-name" // Expects the last name InputAutoCompleteGivenName InputAutoCompleteValue = "given-name" // Expects the first name InputAutoCompleteHonoricPrefix InputAutoCompleteValue = "honoric-prefix" // Expects the title, like "Mr", "Ms" etc. InputAutoCompleteHonoricSuffix InputAutoCompleteValue = "honoric-suffix" // Expects the suffix, like "5", "Jr." etc. InputAutoCompleteNickname InputAutoCompleteValue = "nickname" // Expects the nickname InputAutoCompleteOrganizationTitle InputAutoCompleteValue = "organization-title" // Expects the job title InputAutoCompleteUsername InputAutoCompleteValue = "username" // Expects the username InputAutoCompleteNewPassword InputAutoCompleteValue = "new-password" // Expects a new password InputAutoCompleteCurrentPassword InputAutoCompleteValue = "current-password" // Expects the current password InputAutoCompleteBirthday InputAutoCompleteValue = "bday" // Expects the full birthday date InputAutoCompleteBirthdayDay InputAutoCompleteValue = "bday-day" // Expects the day of the birthday date InputAutoCompleteBirthdayMonth InputAutoCompleteValue = "bday-month" // Expects the month of the birthday date InputAutoCompleteBirthdayYear InputAutoCompleteValue = "bday-year" // Expects the year of the birthday date InputAutoCompleteSex InputAutoCompleteValue = "sex" // Expects the gender InputAutoCompleteOneTimeCode InputAutoCompleteValue = "one-time-code" // Expects a one time code for verification etc. InputAutoCompleteOrganization InputAutoCompleteValue = "organization" // Expects the company name InputAutoCompleteCreditCardName InputAutoCompleteValue = "cc-name" // Expects the credit card owner's full name InputAutoCompleteCreditCardGivenName InputAutoCompleteValue = "cc-given-name" // Expects the credit card owner's first name InputAutoCompleteCreditCardAdditionalName InputAutoCompleteValue = "cc-additional-name" // Expects the credit card owner's middle name InputAutoCompleteCreditCardFamilyName InputAutoCompleteValue = "cc-family-name" // Expects the credit card owner's family name InputAutoCompleteCreditCardNumber InputAutoCompleteValue = "cc-number" // Expects the credit card's number InputAutoCompleteCreditCardExpired InputAutoCompleteValue = "cc-exp" // Expects the credit card's expiration date InputAutoCompleteCreditCardExpiredMonth InputAutoCompleteValue = "cc-exp-month" // Expects the credit card's expiration month InputAutoCompleteCreditCardExpiredYear InputAutoCompleteValue = "cc-exp-year" // Expects the credit card's expiration year InputAutoCompleteCreditCardCvc InputAutoCompleteValue = "cc-csc" // Expects the CVC code InputAutoCompleteCreditCardType InputAutoCompleteValue = "cc-type" // Expects the credit card's type of payment InputAutoCompleteTransactionCurrency InputAutoCompleteValue = "transaction-currency" // Expects the currency InputAutoCompleteTransactionAmount InputAutoCompleteValue = "transaction-amount" // Expects a number, the amount InputAutoCompleteLanguage InputAutoCompleteValue = "language" // Expects the preferred language InputAutoCompleteUrl InputAutoCompleteValue = "url" // Expects a URL for home page or company website address InputAutoCompleteEmail InputAutoCompleteValue = "email" // Expects the email address InputAutoCompletePhoto InputAutoCompleteValue = "photo" // Expects an image InputAutoCompleteTelephone InputAutoCompleteValue = "tel" // Expects the full phone number InputAutoCompleteTelephoneCountryCode InputAutoCompleteValue = "tel-country-code" // Expects the country code of the phone number InputAutoCompleteTelephoneNational InputAutoCompleteValue = "tel-national" // Expects the phone number with no country code InputAutoCompleteTelephoneAreaCode InputAutoCompleteValue = "tel-area-code" // Expects the area code of the phone number InputAutoCompleteTelephoneLocal InputAutoCompleteValue = "tel-local" // Expects the phone number with no country code and no area code InputAutoCompleteTelephoneLocalPrefix InputAutoCompleteValue = "tel-local-prefix" // Expects the local prefix of the phone number InputAutoCompleteTelephoneLocalSuffix InputAutoCompleteValue = "tel-local-suffix" // Expects the local suffix of the phone number InputAutoCompleteTelephoneExtension InputAutoCompleteValue = "tel-extension" // Expects the extension code of the phone number InputAutoCompleteInstantMessagingProtocol InputAutoCompleteValue = "impp" // Expects the url of an instant messaging protocol endpoint )
type InputFileExtension ¶
type InputFileExtension string
func (InputFileExtension) IsInputAccept ¶
func (InputFileExtension) IsInputAccept()
type InputMediaType ¶
type InputMediaType string
func (InputMediaType) IsInputAccept ¶
func (InputMediaType) IsInputAccept()
type InputType ¶
type InputType string
const ( ButtonInputType InputType = "button" // Defines a clickable button (mostly used with a JavaScript to activate a script) CheckboxInputType InputType = "checkbox" // Defines a checkbox ColorInputType InputType = "color" // Defines a color picker DateInputType InputType = "date" // Defines a date control (year, month, day (no time)) DateTimeLocalInputType InputType = "datetime-local" // Defines a date and time control (year, month, day, time (no timezone) EmailInputType InputType = "email" // Defines a field for an e-mail address FileInputType InputType = "file" // Defines a file-select field and a "Browse" button (for file uploads) HiddenInputType InputType = "hidden" // Defines a hidden input field ImageInputType InputType = "image" // Defines an image as the submit button MonthInputType InputType = "month" // Defines a month and year control (no timezone) NumberInputType InputType = "number" // Defines a field for entering a number PasswordInputType InputType = "password" // Defines a password field RadioInputType InputType = "radio" // Defines a radio button RangeInputType InputType = "range" // Defines a range control (like a slider control) ResetInputType InputType = "reset" // Defines a reset button SearchInputType InputType = "search" // Defines a text field for entering a search string SubmitInputType InputType = "submit" // Defines a submit button TelInputType InputType = "tel" // Defines a field for entering a telephone number TextInputType InputType = "text" // Default. Defines a single-line text field TimeInputType InputType = "time" // Defines a control for entering a time (no timezone) UrlInputType InputType = "url" // Defines a field for entering a URL WeekInputType InputType = "week" // Defines a week and year control (no timezone) )
type IsElement ¶
type IsElement interface {
Element() *HtmlElement
}
type IsForm ¶
type IsForm interface {
IsFormElement()
Element() *HtmlElement
Render() string
}
type IsHeadElement ¶
type IsHeadElement interface {
InsideHead()
Element() *HtmlElement
}
type LanguageCode ¶
type LanguageCode string
const ( LangAbkhazian LanguageCode = "ab" LangAfar LanguageCode = "aa" LangAfrikaans LanguageCode = "af" LangAkan LanguageCode = "ak" LangAlbanian LanguageCode = "sq" LangAmharic LanguageCode = "am" LangArabic LanguageCode = "ar" LangAragonese LanguageCode = "an" LangArmenian LanguageCode = "hy" LangAssamese LanguageCode = "as" LangAvaric LanguageCode = "av" LangAvestan LanguageCode = "ae" LangAymara LanguageCode = "ay" LangAzerbaijani LanguageCode = "az" LangBambara LanguageCode = "bm" LangBashkir LanguageCode = "ba" LangBasque LanguageCode = "eu" LangBelarusian LanguageCode = "be" LangBengali LanguageCode = "bn" LangBangla LanguageCode = "bn" LangBihari LanguageCode = "bh" LangBislama LanguageCode = "bi" LangBosnian LanguageCode = "bs" LangBreton LanguageCode = "br" LangBulgarian LanguageCode = "bg" LangBurmese LanguageCode = "my" LangCatalan LanguageCode = "ca" LangChamorro LanguageCode = "ch" LangChechen LanguageCode = "ce" LangChichewa LanguageCode = "ny" LangChewa LanguageCode = "ny" LangNyanja LanguageCode = "ny" LangChinese LanguageCode = "zh" LangChineseSimplified LanguageCode = "zh-Hans" LangChineseTraditional LanguageCode = "zh-Hant" LangChuvash LanguageCode = "cv" LangCornish LanguageCode = "kw" LangCorsican LanguageCode = "co" LangCree LanguageCode = "cr" LangCroatian LanguageCode = "hr" LangCzech LanguageCode = "cs" LangDanish LanguageCode = "da" LangDivehi LanguageCode = "dv" LangDhivehi LanguageCode = "dv" LangMaldivian LanguageCode = "dv" LangDutch LanguageCode = "nl" LangDzongkha LanguageCode = "dz" LangEnglish LanguageCode = "en" LangEsperanto LanguageCode = "eo" LangEstonian LanguageCode = "et" LangEwe LanguageCode = "ee" LangFaroese LanguageCode = "fo" LangFijian LanguageCode = "fj" LangFinnish LanguageCode = "fi" LangFrench LanguageCode = "fr" LangFula LanguageCode = "ff" LangFulah LanguageCode = "ff" LangPulaar LanguageCode = "ff" LangPular LanguageCode = "ff" LangGalician LanguageCode = "gl" LangGaelicScottish LanguageCode = "gd" LangGaelicManx LanguageCode = "gv" LangGeorgian LanguageCode = "ka" LangGerman LanguageCode = "de" LangGreek LanguageCode = "el" LangGreenlandic LanguageCode = "kl" LangGuarani LanguageCode = "gn" LangGujarati LanguageCode = "gu" LangHaitianCreole LanguageCode = "ht" LangHausa LanguageCode = "ha" LangHebrew LanguageCode = "he" LangHerero LanguageCode = "hz" LangHindi LanguageCode = "hi" LangHiriMotu LanguageCode = "ho" LangHungarian LanguageCode = "hu" LangIcelandic LanguageCode = "is" LangIdo LanguageCode = "io" LangIgbo LanguageCode = "ig" LangIndonesian LanguageCode = "id" LangInterlingua LanguageCode = "ia" LangInterlingue LanguageCode = "ie" LangInuktitut LanguageCode = "iu" LangInupiak LanguageCode = "ik" LangIrish LanguageCode = "ga" LangItalian LanguageCode = "it" LangJapanese LanguageCode = "ja" LangJavanese LanguageCode = "jv" LangKalaallisut LanguageCode = "kl" LangKannada LanguageCode = "kn" LangKanuri LanguageCode = "kr" LangKashmiri LanguageCode = "ks" LangKazakh LanguageCode = "kk" LangKhmer LanguageCode = "km" LangKikuyu LanguageCode = "ki" LangKinyarwanda LanguageCode = "rw" LangRwanda LanguageCode = "rw" LangKirundi LanguageCode = "rn" LangKyrgyz LanguageCode = "ky" LangKomi LanguageCode = "kv" LangKongo LanguageCode = "kg" LangKorean LanguageCode = "ko" LangKurdish LanguageCode = "ku" LangKwanyama LanguageCode = "kj" LangLao LanguageCode = "lo" LangLatin LanguageCode = "la" LangLatvian LanguageCode = "lv" LangLettish LanguageCode = "lv" LangLimburgish LanguageCode = "li " LangLimburger LanguageCode = "li" LangLingala LanguageCode = "ln" LangLithuanian LanguageCode = "lt" LangLugaKatanga LanguageCode = "lu" LangLuganda LanguageCode = "lg" LangGanda LanguageCode = "lg" LangLuxembourgish LanguageCode = "lb" LangManx LanguageCode = "gv" LangMacedonian LanguageCode = "mk" LangMalagasy LanguageCode = "mg" LangMalay LanguageCode = "ms" LangMalayalam LanguageCode = "ml" LangMaltese LanguageCode = "mt" LangMaori LanguageCode = "mi" LangMarathi LanguageCode = "mr" LangMarshallese LanguageCode = "mh" LangMoldavian LanguageCode = "mo" LangMongolian LanguageCode = "mn" LangNauru LanguageCode = "na" LangNdonga LanguageCode = "ng" LangNorthernNdebele LanguageCode = "nd" LangNepali LanguageCode = "ne" LangNorwegian LanguageCode = "no" LangNorwegianBokmal LanguageCode = "nb" LangNorwegianNynorsk LanguageCode = "nn" LangNuosu LanguageCode = "ii" LangOccitan LanguageCode = "oc" LangOjibwe LanguageCode = "oj" LangOldChurchSlavonic LanguageCode = "cu" LangOldBulgarian LanguageCode = "cu" LangOriya LanguageCode = "or" LangOromo LanguageCode = "om" LangAfaanOromo LanguageCode = "om" LangOssetian LanguageCode = "os" LangPāli LanguageCode = "pi" LangPashto LanguageCode = "ps" LangPushto LanguageCode = "ps" LangPersian LanguageCode = "fa" LangFarsi LanguageCode = "fa" LangPolish LanguageCode = "pl" LangPortuguese LanguageCode = "pt" LangPunjabi LanguageCode = "pa" LangEastern LanguageCode = "pa" LangQuechua LanguageCode = "qu" LangRomansh LanguageCode = "rm" LangRomanian LanguageCode = "ro" LangRussian LanguageCode = "ru" LangSami LanguageCode = "se" LangSamoan LanguageCode = "sm" LangSango LanguageCode = "sg" LangSanskrit LanguageCode = "sa" LangSerbian LanguageCode = "sr" LangSerboCroatian LanguageCode = "sh" LangSesotho LanguageCode = "st" LangSetswana LanguageCode = "tn" LangShona LanguageCode = "sn" LangSichuanYi LanguageCode = "ii" LangSindhi LanguageCode = "sd" LangSinhalese LanguageCode = "si" LangSiswati LanguageCode = "ss" LangSlovak LanguageCode = "sk" LangSlovenian LanguageCode = "sl" LangSomali LanguageCode = "so" LangSouthernNdebele LanguageCode = "nr" LangSpanish LanguageCode = "es" LangSundanese LanguageCode = "su" LangSwahili LanguageCode = "sw" LangKiswahili LanguageCode = "sw" LangSwati LanguageCode = "ss" LangSwedish LanguageCode = "sv" LangTagalog LanguageCode = "tl" LangTahitian LanguageCode = "ty" LangTajik LanguageCode = "tg" LangTamil LanguageCode = "ta" LangTatar LanguageCode = "tt" LangTelugu LanguageCode = "te" LangThai LanguageCode = "th" LangTibetan LanguageCode = "bo" LangTigrinya LanguageCode = "ti" LangTonga LanguageCode = "to" LangTsonga LanguageCode = "ts" LangTurkish LanguageCode = "tr" LangTurkmen LanguageCode = "tk" LangTwi LanguageCode = "tw" LangUyghur LanguageCode = "ug" LangUkrainian LanguageCode = "uk" LangUrdu LanguageCode = "ur" LangUzbek LanguageCode = "uz" LangVenda LanguageCode = "ve" LangVietnamese LanguageCode = "vi" LangVolapük LanguageCode = "vo" LangWallon LanguageCode = "wa" LangWelsh LanguageCode = "cy" LangWolof LanguageCode = "wo" LangWesternFrisian LanguageCode = "fy" LangXhosa LanguageCode = "xh" LangYiddish LanguageCode = "yi" LangYoruba LanguageCode = "yo" LangZhuang LanguageCode = "za" LangChuang LanguageCode = "za" LangZulu LanguageCode = "zu" )
type LinkRelationship ¶
type LinkRelationship string
const ( RelAlternate LinkRelationship = "alternate" RelAuthor LinkRelationship = "author" RelDnsPrefetch LinkRelationship = "dns-prefetch" RelHelp LinkRelationship = "help" RelIcon LinkRelationship = "icon" RelLicense LinkRelationship = "license" RelNext LinkRelationship = "next" RelPingback LinkRelationship = "pingback" RelPreconnect LinkRelationship = "preconnect" RelPrefetch LinkRelationship = "prefetch" RelPreload LinkRelationship = "preload" RelPrerender LinkRelationship = "prerender" RelPrev LinkRelationship = "prev" RelSearch LinkRelationship = "search" RelStylesheet LinkRelationship = "stylesheet" )
type MetaName ¶
type MetaName string
const ( MetaNameApplicationName MetaName = "application-name" MetaNameAuthor MetaName = "author" MetaNameDescription MetaName = "description" MetaNameGenerator MetaName = "generator" MetaNameKeywords MetaName = "keywords" MetaNameReferrer MetaName = "referrer" MetaNameViewport MetaName = "viewport" MetaNameThemeColor MetaName = "theme-color" MetaNameRobots MetaName = "robots" MetaNameGoogleSiteVerification MetaName = "google-site-verification" )
type PopoverTargetAction ¶
type PopoverTargetAction string
const ( PopoverTargetActionHide PopoverTargetAction = "hide" PopoverTargetActionShow PopoverTargetAction = "show" PopoverTargetActionToggle PopoverTargetAction = "toggle" )
type RefererPolicy ¶
type RefererPolicy string
const ( RefererPolicyNoReferer RefererPolicy = "no-referrer" RefererPolicyNoRefererWhenDowngrade RefererPolicy = "no-referrer-when-downgrade" RefererPolicyOrigin RefererPolicy = "origin" RefererPolicyOriginWhenCrossOrigin RefererPolicy = "origin-when-cross-origin" RefererPolicySameOrigin RefererPolicy = "same-origin" RefererPolicyStrictOriginWhenCrossOrigin RefererPolicy = "strict-origin-when-cross-origin" RefererPolicyUnsafeUrl RefererPolicy = "unsafe-url" )
type TargetAction ¶
type TargetAction string
const ( TargetActionHide TargetAction = "hide" TargetActionShow TargetAction = "show" TargetActionToggle TargetAction = "toggle" )
type TextAreaWrap ¶
type TextAreaWrap string
const ( TextAreaWrapSoft TextAreaWrap = "soft" TextAreaWrapHard TextAreaWrap = "hard" )
type TranslateOptions ¶
type TranslateOptions string
const ( TranslateYes TranslateOptions = "yes" TranslateNo TranslateOptions = "no" )
type VideoPreload ¶
type VideoPreload string
const ( VideoPreloadAuto VideoPreload = "auto" VideoPreloadMetadata VideoPreload = "metadata" VideoPreloadNone VideoPreload = "none" )
Source Files
¶
- a.go
- abbr.go
- address.go
- area.go
- article.go
- aside.go
- audio.go
- b.go
- base.go
- bdi.go
- bdo.go
- blockquote.go
- body.go
- br.go
- button.go
- canvas.go
- caption.go
- cite.go
- code.go
- col.go
- colgroup.go
- data.go
- datalist.go
- dd.go
- del.go
- details.go
- dfn.go
- dialog.go
- div.go
- dl.go
- dt.go
- element.go
- em.go
- fieldset.go
- figcaption.go
- figure.go
- footer.go
- form.go
- head.go
- header.go
- heading.go
- hgroup.go
- hr.go
- html.go
- i.go
- iframe.go
- img.go
- input.go
- ins.go
- kbd.go
- label.go
- langcode.go
- legend.go
- li.go
- link.go
- main.go
- map.go
- mark.go
- menu.go
- meta.go
- meter.go
- nav.go
- noscript.go
- object.go
- ol.go
- optgroup.go
- option.go
- output.go
- p.go
- param.go
- picture.go
- pre.go
- progress.go
- q.go
- rp.go
- rt.go
- ruby.go
- s.go
- samp.go
- script.go
- search.go
- section.go
- select.go
- small.go
- source.go
- span.go
- strong.go
- style.go
- sub.go
- summary.go
- sup.go
- table.go
- tbody.go
- td.go
- template.go
- text.go
- textarea.go
- tfoot.go
- th.go
- thead.go
- time.go
- title.go
- tr.go
- track.go
- u.go
- ul.go
- var.go
- video.go
- wbr.go
Click to show internal directories.
Click to hide internal directories.