atomx

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAtom

func IsAtom(a Atomable, wants ...Atom) bool

IsAtom returns true if the atom is in the list of atoms.

Types

type Atom

type Atom string

Atom is a string that is used to identify a specific element or attribute. Example:

"a", "img", "div"
const (
	A                         Atom = "a"
	Abbr                      Atom = "abbr"
	Accept                    Atom = "accept"
	AcceptCharset             Atom = "accept-charset"
	Accesskey                 Atom = "accesskey"
	Acronym                   Atom = "acronym"
	Action                    Atom = "action"
	Address                   Atom = "address"
	Align                     Atom = "align"
	Allowfullscreen           Atom = "allowfullscreen"
	Allowpaymentrequest       Atom = "allowpaymentrequest"
	Allowusermedia            Atom = "allowusermedia"
	Alt                       Atom = "alt"
	Annotation                Atom = "annotation"
	AnnotationXml             Atom = "annotation-xml"
	Applet                    Atom = "applet"
	Area                      Atom = "area"
	Article                   Atom = "article"
	As                        Atom = "as"
	Aside                     Atom = "aside"
	Async                     Atom = "async"
	Audio                     Atom = "audio"
	Autocomplete              Atom = "autocomplete"
	Autofocus                 Atom = "autofocus"
	Autoplay                  Atom = "autoplay"
	B                         Atom = "b"
	Base                      Atom = "base"
	Basefont                  Atom = "basefont"
	Bdi                       Atom = "bdi"
	Bdo                       Atom = "bdo"
	Bgsound                   Atom = "bgsound"
	Big                       Atom = "big"
	Blink                     Atom = "blink"
	Blockquote                Atom = "blockquote"
	Body                      Atom = "body"
	Br                        Atom = "br"
	Button                    Atom = "button"
	Canvas                    Atom = "canvas"
	Caption                   Atom = "caption"
	Center                    Atom = "center"
	Challenge                 Atom = "challenge"
	Charset                   Atom = "charset"
	Checked                   Atom = "checked"
	Cite                      Atom = "cite"
	Class                     Atom = "class"
	Cmd                       Atom = "cmd"
	Code                      Atom = "code"
	Col                       Atom = "col"
	Colgroup                  Atom = "colgroup"
	Color                     Atom = "color"
	Cols                      Atom = "cols"
	Colspan                   Atom = "colspan"
	Command                   Atom = "command"
	Content                   Atom = "content"
	Contenteditable           Atom = "contenteditable"
	Contextmenu               Atom = "contextmenu"
	Controls                  Atom = "controls"
	Coords                    Atom = "coords"
	Crossorigin               Atom = "crossorigin"
	Data                      Atom = "data"
	Datalist                  Atom = "datalist"
	Datetime                  Atom = "datetime"
	Dd                        Atom = "dd"
	Default                   Atom = "default"
	Defer                     Atom = "defer"
	Del                       Atom = "del"
	Desc                      Atom = "desc"
	Details                   Atom = "details"
	Dfn                       Atom = "dfn"
	Dialog                    Atom = "dialog"
	Dir                       Atom = "dir"
	Dirname                   Atom = "dirname"
	Disabled                  Atom = "disabled"
	Div                       Atom = "div"
	Dl                        Atom = "dl"
	Download                  Atom = "download"
	Draggable                 Atom = "draggable"
	Dropzone                  Atom = "dropzone"
	Dt                        Atom = "dt"
	Em                        Atom = "em"
	Embed                     Atom = "embed"
	Enctype                   Atom = "enctype"
	Face                      Atom = "face"
	Fieldset                  Atom = "fieldset"
	Figcaption                Atom = "figcaption"
	Figure                    Atom = "figure"
	File                      Atom = "file"
	Filegroup                 Atom = "filegroup"
	Font                      Atom = "font"
	Footer                    Atom = "footer"
	For                       Atom = "for"
	ForeignObject             Atom = "foreignObject"
	Foreignobject             Atom = "foreignobject"
	Form                      Atom = "form"
	Formaction                Atom = "formaction"
	Formenctype               Atom = "formenctype"
	Formmethod                Atom = "formmethod"
	Formnovalidate            Atom = "formnovalidate"
	Formtarget                Atom = "formtarget"
	Frame                     Atom = "frame"
	Frameset                  Atom = "frameset"
	Go                        Atom = "go"
	H1                        Atom = "h1"
	H2                        Atom = "h2"
	H3                        Atom = "h3"
	H4                        Atom = "h4"
	H5                        Atom = "h5"
	H6                        Atom = "h6"
	Head                      Atom = "head"
	Header                    Atom = "header"
	Headers                   Atom = "headers"
	Height                    Atom = "height"
	Hgroup                    Atom = "hgroup"
	Hidden                    Atom = "hidden"
	High                      Atom = "high"
	Hr                        Atom = "hr"
	Href                      Atom = "href"
	Hreflang                  Atom = "hreflang"
	HTML                      Atom = "html"
	HTTPEquiv                 Atom = "http-equiv"
	I                         Atom = "i"
	Icon                      Atom = "icon"
	ID                        Atom = "id"
	Iframe                    Atom = "iframe"
	Image                     Atom = "image"
	Img                       Atom = "img"
	Include                   Atom = "include"
	Input                     Atom = "input"
	Inputmode                 Atom = "inputmode"
	Ins                       Atom = "ins"
	Integrity                 Atom = "integrity"
	Is                        Atom = "is"
	Isindex                   Atom = "isindex"
	Ismap                     Atom = "ismap"
	Itemid                    Atom = "itemid"
	Itemprop                  Atom = "itemprop"
	Itemref                   Atom = "itemref"
	Itemscope                 Atom = "itemscope"
	Itemtype                  Atom = "itemtype"
	Kbd                       Atom = "kbd"
	Keygen                    Atom = "keygen"
	Keytype                   Atom = "keytype"
	Kind                      Atom = "kind"
	Label                     Atom = "label"
	Lang                      Atom = "lang"
	Legend                    Atom = "legend"
	Li                        Atom = "li"
	Link                      Atom = "link"
	List                      Atom = "list"
	Listing                   Atom = "listing"
	Loop                      Atom = "loop"
	Low                       Atom = "low"
	Main                      Atom = "main"
	Malignmark                Atom = "malignmark"
	Manifest                  Atom = "manifest"
	Map                       Atom = "map"
	Mark                      Atom = "mark"
	Marquee                   Atom = "marquee"
	Math                      Atom = "math"
	Max                       Atom = "max"
	Maxlength                 Atom = "maxlength"
	Media                     Atom = "media"
	Mediagroup                Atom = "mediagroup"
	Menu                      Atom = "menu"
	Menuitem                  Atom = "menuitem"
	Meta                      Atom = "meta"
	Metadata                  Atom = "metadata"
	Meter                     Atom = "meter"
	Method                    Atom = "method"
	Mglyph                    Atom = "mglyph"
	Mi                        Atom = "mi"
	Min                       Atom = "min"
	Minlength                 Atom = "minlength"
	Mn                        Atom = "mn"
	Mo                        Atom = "mo"
	Ms                        Atom = "ms"
	Mtext                     Atom = "mtext"
	Multiple                  Atom = "multiple"
	Muted                     Atom = "muted"
	Name                      Atom = "name"
	Nav                       Atom = "nav"
	Nobr                      Atom = "nobr"
	Noembed                   Atom = "noembed"
	Noframes                  Atom = "noframes"
	Nomodule                  Atom = "nomodule"
	Nonce                     Atom = "nonce"
	Noscript                  Atom = "noscript"
	Novalidate                Atom = "novalidate"
	Object                    Atom = "object"
	Ol                        Atom = "ol"
	Onabort                   Atom = "onabort"
	Onafterprint              Atom = "onafterprint"
	Onautocomplete            Atom = "onautocomplete"
	Onautocompleteerror       Atom = "onautocompleteerror"
	Onauxclick                Atom = "onauxclick"
	Onbeforeprint             Atom = "onbeforeprint"
	Onbeforeunload            Atom = "onbeforeunload"
	Onblur                    Atom = "onblur"
	Oncancel                  Atom = "oncancel"
	Oncanplay                 Atom = "oncanplay"
	Oncanplaythrough          Atom = "oncanplaythrough"
	Onchange                  Atom = "onchange"
	Onclick                   Atom = "onclick"
	Onclose                   Atom = "onclose"
	Oncontextmenu             Atom = "oncontextmenu"
	Oncopy                    Atom = "oncopy"
	Oncuechange               Atom = "oncuechange"
	Oncut                     Atom = "oncut"
	Ondblclick                Atom = "ondblclick"
	Ondrag                    Atom = "ondrag"
	Ondragend                 Atom = "ondragend"
	Ondragenter               Atom = "ondragenter"
	Ondragexit                Atom = "ondragexit"
	Ondragleave               Atom = "ondragleave"
	Ondragover                Atom = "ondragover"
	Ondragstart               Atom = "ondragstart"
	Ondrop                    Atom = "ondrop"
	Ondurationchange          Atom = "ondurationchange"
	Onemptied                 Atom = "onemptied"
	Onended                   Atom = "onended"
	Onerror                   Atom = "onerror"
	Onfocus                   Atom = "onfocus"
	Onhashchange              Atom = "onhashchange"
	Oninput                   Atom = "oninput"
	Oninvalid                 Atom = "oninvalid"
	Onkeydown                 Atom = "onkeydown"
	Onkeypress                Atom = "onkeypress"
	Onkeyup                   Atom = "onkeyup"
	Onlanguagechange          Atom = "onlanguagechange"
	Onload                    Atom = "onload"
	Onloadeddata              Atom = "onloadeddata"
	Onloadedmetadata          Atom = "onloadedmetadata"
	Onloadend                 Atom = "onloadend"
	Onloadstart               Atom = "onloadstart"
	Onmessage                 Atom = "onmessage"
	Onmessageerror            Atom = "onmessageerror"
	Onmousedown               Atom = "onmousedown"
	Onmouseenter              Atom = "onmouseenter"
	Onmouseleave              Atom = "onmouseleave"
	Onmousemove               Atom = "onmousemove"
	Onmouseout                Atom = "onmouseout"
	Onmouseover               Atom = "onmouseover"
	Onmouseup                 Atom = "onmouseup"
	Onmousewheel              Atom = "onmousewheel"
	Onoffline                 Atom = "onoffline"
	Ononline                  Atom = "ononline"
	Onpagehide                Atom = "onpagehide"
	Onpageshow                Atom = "onpageshow"
	Onpaste                   Atom = "onpaste"
	Onpause                   Atom = "onpause"
	Onplay                    Atom = "onplay"
	Onplaying                 Atom = "onplaying"
	Onpopstate                Atom = "onpopstate"
	Onprogress                Atom = "onprogress"
	Onratechange              Atom = "onratechange"
	Onrejectionhandled        Atom = "onrejectionhandled"
	Onreset                   Atom = "onreset"
	Onresize                  Atom = "onresize"
	Onscroll                  Atom = "onscroll"
	Onsecuritypolicyviolation Atom = "onsecuritypolicyviolation"
	Onseeked                  Atom = "onseeked"
	Onseeking                 Atom = "onseeking"
	Onselect                  Atom = "onselect"
	Onshow                    Atom = "onshow"
	Onsort                    Atom = "onsort"
	Onstalled                 Atom = "onstalled"
	Onstorage                 Atom = "onstorage"
	Onsubmit                  Atom = "onsubmit"
	Onsuspend                 Atom = "onsuspend"
	Ontimeupdate              Atom = "ontimeupdate"
	Ontoggle                  Atom = "ontoggle"
	Onunhandledrejection      Atom = "onunhandledrejection"
	Onunload                  Atom = "onunload"
	Onvolumechange            Atom = "onvolumechange"
	Onwaiting                 Atom = "onwaiting"
	Onwheel                   Atom = "onwheel"
	Open                      Atom = "open"
	Optgroup                  Atom = "optgroup"
	Optimum                   Atom = "optimum"
	Option                    Atom = "option"
	Output                    Atom = "output"
	P                         Atom = "p"
	Page                      Atom = "page"
	Param                     Atom = "param"
	Pattern                   Atom = "pattern"
	Picture                   Atom = "picture"
	Ping                      Atom = "ping"
	Placeholder               Atom = "placeholder"
	Plaintext                 Atom = "plaintext"
	Playsinline               Atom = "playsinline"
	Poster                    Atom = "poster"
	Pre                       Atom = "pre"
	Preload                   Atom = "preload"
	Progress                  Atom = "progress"
	Prompt                    Atom = "prompt"
	Public                    Atom = "public"
	Q                         Atom = "q"
	Radiogroup                Atom = "radiogroup"
	Rb                        Atom = "rb"
	Readonly                  Atom = "readonly"
	Ref                       Atom = "ref"
	Referrerpolicy            Atom = "referrerpolicy"
	Rel                       Atom = "rel"
	Required                  Atom = "required"
	Reversed                  Atom = "reversed"
	Rows                      Atom = "rows"
	Rowspan                   Atom = "rowspan"
	Rp                        Atom = "rp"
	Rt                        Atom = "rt"
	Rtc                       Atom = "rtc"
	Ruby                      Atom = "ruby"
	S                         Atom = "s"
	Samp                      Atom = "samp"
	Sandbox                   Atom = "sandbox"
	Scope                     Atom = "scope"
	Scoped                    Atom = "scoped"
	Script                    Atom = "script"
	Seamless                  Atom = "seamless"
	Section                   Atom = "section"
	Select                    Atom = "select"
	Selected                  Atom = "selected"
	Shape                     Atom = "shape"
	Size                      Atom = "size"
	Sizes                     Atom = "sizes"
	Slot                      Atom = "slot"
	Small                     Atom = "small"
	Sortable                  Atom = "sortable"
	Sorted                    Atom = "sorted"
	Source                    Atom = "source"
	Spacer                    Atom = "spacer"
	Span                      Atom = "span"
	Spellcheck                Atom = "spellcheck"
	Src                       Atom = "src"
	Srcdoc                    Atom = "srcdoc"
	Srclang                   Atom = "srclang"
	Srcset                    Atom = "srcset"
	Start                     Atom = "start"
	Step                      Atom = "step"
	Strike                    Atom = "strike"
	Strong                    Atom = "strong"
	Style                     Atom = "style"
	Sub                       Atom = "sub"
	Summary                   Atom = "summary"
	Sup                       Atom = "sup"
	Svg                       Atom = "svg"
	System                    Atom = "system"
	Tabindex                  Atom = "tabindex"
	Table                     Atom = "table"
	Target                    Atom = "target"
	Tbody                     Atom = "tbody"
	Td                        Atom = "td"
	Template                  Atom = "template"
	Textarea                  Atom = "textarea"
	Tfoot                     Atom = "tfoot"
	Th                        Atom = "th"
	Thead                     Atom = "thead"
	Time                      Atom = "time"
	Title                     Atom = "title"
	Tr                        Atom = "tr"
	Track                     Atom = "track"
	Translate                 Atom = "translate"
	Tt                        Atom = "tt"
	Type                      Atom = "type"
	Typemustmatch             Atom = "typemustmatch"
	U                         Atom = "u"
	Ul                        Atom = "ul"
	Unknown                   Atom = "unknown"
	Updateviacache            Atom = "updateviacache"
	Usemap                    Atom = "usemap"
	Value                     Atom = "value"
	Var                       Atom = "var"
	Video                     Atom = "video"
	Wbr                       Atom = "wbr"
	Width                     Atom = "width"
	Workertype                Atom = "workertype"
	Wrap                      Atom = "wrap"
	Xmp                       Atom = "xmp"
)
const (
	ERROR   Atom = "error"
	UNKNOWN Atom = "unknown"
)

func (Atom) Atom

func (a Atom) Atom() Atom

Atom implements the Atomable interface.

func (Atom) Is

func (a Atom) Is(wants ...Atom) bool

Is returns true if the atom is in the list of atoms.

func (Atom) String

func (a Atom) String() string

String representation of an Atom.

type Atomable

type Atomable interface {
	Atom() Atom
}

type Atoms

type Atoms []Atom

Atoms is a slice of Atoms.

func Headings

func Headings() Atoms

func Inlines

func Inlines() Atoms

func (Atoms) Has

func (atoms Atoms) Has(a Atom) bool

Has returns true if the atom is in the list of atoms.

func (Atoms) String

func (atoms Atoms) String() string

String returns a string representation of the atoms. Example:

"a, img, div"

Jump to

Keyboard shortcuts

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