{"modulePath":"github.com/wfernandes/cli","version":"v6.1.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package atom\n\nPackage atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as \"p\" and \"id\".\n\nSharing an atom's name between all elements with the same tag can result in fewer string allocations when tokenizing and parsing HTML. Integer comparisons are also generally faster than string comparisons.\n\nThe value of an atom's particular code is not guaranteed to stay the same between versions of this package. Neither is any ordering guaranteed: whether atom.H1 \\\u003c atom.H2 may also change. The codes are not guaranteed to be dense. The only guarantees are that e.g. looking up \"div\" will yield atom.Div, calling atom.Div.String will return \"div\", and atom.Div != 0.\n\n## Functions\n\n```go\nfunc String(s []byte) string\n```\nString returns a string whose contents are equal to s. In that sense, it is equivalent to string(s) but may be more efficient.\n\n## Types\n\n```go\ntype Atom uint32\n```\nAtom is an integer code for a string. The zero value maps to \"\".\n\n```go\nconst (\n\tA                Atom = 0x1\n\tAbbr             Atom = 0x4\n\tAccept           Atom = 0x2106\n\tAcceptCharset    Atom = 0x210e\n\tAccesskey        Atom = 0x3309\n\tAction           Atom = 0x21b06\n\tAddress          Atom = 0x5d507\n\tAlign            Atom = 0x1105\n\tAlt              Atom = 0x4503\n\tAnnotation       Atom = 0x18d0a\n\tAnnotationXml    Atom = 0x18d0e\n\tApplet           Atom = 0x2d106\n\tArea             Atom = 0x31804\n\tArticle          Atom = 0x39907\n\tAside            Atom = 0x4f05\n\tAsync            Atom = 0x9305\n\tAudio            Atom = 0xaf05\n\tAutocomplete     Atom = 0xd50c\n\tAutofocus        Atom = 0xe109\n\tAutoplay         Atom = 0x10c08\n\tB                Atom = 0x101\n\tBase             Atom = 0x11404\n\tBasefont         Atom = 0x11408\n\tBdi              Atom = 0x1a03\n\tBdo              Atom = 0x12503\n\tBgsound          Atom = 0x13807\n\tBig              Atom = 0x14403\n\tBlink            Atom = 0x14705\n\tBlockquote       Atom = 0x14c0a\n\tBody             Atom = 0x2f04\n\tBorder           Atom = 0x15606\n\tBr               Atom = 0x202\n\tButton           Atom = 0x15c06\n\tCanvas           Atom = 0x4b06\n\tCaption          Atom = 0x1e007\n\tCenter           Atom = 0x2df06\n\tChallenge        Atom = 0x23e09\n\tCharset          Atom = 0x2807\n\tChecked          Atom = 0x33f07\n\tCite             Atom = 0x9704\n\tClass            Atom = 0x3d905\n\tCode             Atom = 0x16f04\n\tCol              Atom = 0x17603\n\tColgroup         Atom = 0x17608\n\tColor            Atom = 0x18305\n\tCols             Atom = 0x18804\n\tColspan          Atom = 0x18807\n\tCommand          Atom = 0x19b07\n\tContent          Atom = 0x42c07\n\tContenteditable  Atom = 0x42c0f\n\tContextmenu      Atom = 0x3480b\n\tControls         Atom = 0x1ae08\n\tCoords           Atom = 0x1ba06\n\tCrossorigin      Atom = 0x1c40b\n\tData             Atom = 0x44304\n\tDatalist         Atom = 0x44308\n\tDatetime         Atom = 0x25b08\n\tDd               Atom = 0x28802\n\tDefault          Atom = 0x5207\n\tDefer            Atom = 0x17105\n\tDel              Atom = 0x4d603\n\tDesc             Atom = 0x4804\n\tDetails          Atom = 0x6507\n\tDfn              Atom = 0x8303\n\tDialog           Atom = 0x1b06\n\tDir              Atom = 0x9d03\n\tDirname          Atom = 0x9d07\n\tDisabled         Atom = 0x10008\n\tDiv              Atom = 0x10703\n\tDl               Atom = 0x13e02\n\tDownload         Atom = 0x40908\n\tDraggable        Atom = 0x1a109\n\tDropzone         Atom = 0x3a208\n\tDt               Atom = 0x4e402\n\tEm               Atom = 0x7f02\n\tEmbed            Atom = 0x7f05\n\tEnctype          Atom = 0x23007\n\tFace             Atom = 0x2dd04\n\tFieldset         Atom = 0x1d508\n\tFigcaption       Atom = 0x1dd0a\n\tFigure           Atom = 0x1f106\n\tFont             Atom = 0x11804\n\tFooter           Atom = 0x5906\n\tFor              Atom = 0x1fd03\n\tForeignObject    Atom = 0x1fd0d\n\tForeignobject    Atom = 0x20a0d\n\tForm             Atom = 0x21704\n\tFormaction       Atom = 0x2170a\n\tFormenctype      Atom = 0x22c0b\n\tFormmethod       Atom = 0x2470a\n\tFormnovalidate   Atom = 0x2510e\n\tFormtarget       Atom = 0x2660a\n\tFrame            Atom = 0x8705\n\tFrameset         Atom = 0x8708\n\tH1               Atom = 0x13602\n\tH2               Atom = 0x29602\n\tH3               Atom = 0x2c502\n\tH4               Atom = 0x30e02\n\tH5               Atom = 0x4e602\n\tH6               Atom = 0x27002\n\tHead             Atom = 0x2fa04\n\tHeader           Atom = 0x2fa06\n\tHeaders          Atom = 0x2fa07\n\tHeight           Atom = 0x27206\n\tHgroup           Atom = 0x27a06\n\tHidden           Atom = 0x28606\n\tHigh             Atom = 0x29304\n\tHr               Atom = 0x13102\n\tHref             Atom = 0x29804\n\tHreflang         Atom = 0x29808\n\tHtml             Atom = 0x27604\n\tHttpEquiv        Atom = 0x2a00a\n\tI                Atom = 0x601\n\tIcon             Atom = 0x42b04\n\tId               Atom = 0x5102\n\tIframe           Atom = 0x2b406\n\tImage            Atom = 0x2ba05\n\tImg              Atom = 0x2bf03\n\tInert            Atom = 0x4c105\n\tInput            Atom = 0x3f605\n\tIns              Atom = 0x1cd03\n\tIsindex          Atom = 0x2c707\n\tIsmap            Atom = 0x2ce05\n\tItemid           Atom = 0x9806\n\tItemprop         Atom = 0x57e08\n\tItemref          Atom = 0x2d707\n\tItemscope        Atom = 0x2e509\n\tItemtype         Atom = 0x2ef08\n\tKbd              Atom = 0x1903\n\tKeygen           Atom = 0x3906\n\tKeytype          Atom = 0x51207\n\tKind             Atom = 0xfd04\n\tLabel            Atom = 0xba05\n\tLang             Atom = 0x29c04\n\tLegend           Atom = 0x1a806\n\tLi               Atom = 0x1202\n\tLink             Atom = 0x14804\n\tList             Atom = 0x44704\n\tListing          Atom = 0x44707\n\tLoop             Atom = 0xbe04\n\tLow              Atom = 0x13f03\n\tMalignmark       Atom = 0x100a\n\tManifest         Atom = 0x5b608\n\tMap              Atom = 0x2d003\n\tMark             Atom = 0x1604\n\tMarquee          Atom = 0x5f207\n\tMath             Atom = 0x2f704\n\tMax              Atom = 0x30603\n\tMaxlength        Atom = 0x30609\n\tMedia            Atom = 0xa205\n\tMediagroup       Atom = 0xa20a\n\tMenu             Atom = 0x34f04\n\tMeta             Atom = 0x45604\n\tMeter            Atom = 0x26105\n\tMethod           Atom = 0x24b06\n\tMglyph           Atom = 0x2c006\n\tMi               Atom = 0x9b02\n\tMin              Atom = 0x31003\n\tMn               Atom = 0x25402\n\tMo               Atom = 0x47a02\n\tMs               Atom = 0x2e802\n\tMtext            Atom = 0x31305\n\tMultiple         Atom = 0x32108\n\tMuted            Atom = 0x32905\n\tName             Atom = 0xa004\n\tNav              Atom = 0x3e03\n\tNobr             Atom = 0x7404\n\tNoembed          Atom = 0x7d07\n\tNoframes         Atom = 0x8508\n\tNoscript         Atom = 0x28b08\n\tNovalidate       Atom = 0x2550a\n\tObject           Atom = 0x21106\n\tOl               Atom = 0xcd02\n\tOnabort          Atom = 0x16007\n\tOnafterprint     Atom = 0x1e50c\n\tOnbeforeprint    Atom = 0x21f0d\n\tOnbeforeunload   Atom = 0x5c90e\n\tOnblur           Atom = 0x3e206\n\tOncancel         Atom = 0xb308\n\tOncanplay        Atom = 0x12709\n\tOncanplaythrough Atom = 0x12710\n\tOnchange         Atom = 0x3b808\n\tOnclick          Atom = 0x2ad07\n\tOnclose          Atom = 0x32e07\n\tOncontextmenu    Atom = 0x3460d\n\tOncuechange      Atom = 0x3530b\n\tOndblclick       Atom = 0x35e0a\n\tOndrag           Atom = 0x36806\n\tOndragend        Atom = 0x36809\n\tOndragenter      Atom = 0x3710b\n\tOndragleave      Atom = 0x37c0b\n\tOndragover       Atom = 0x3870a\n\tOndragstart      Atom = 0x3910b\n\tOndrop           Atom = 0x3a006\n\tOndurationchange Atom = 0x3b010\n\tOnemptied        Atom = 0x3a709\n\tOnended          Atom = 0x3c007\n\tOnerror          Atom = 0x3c707\n\tOnfocus          Atom = 0x3ce07\n\tOnhashchange     Atom = 0x3e80c\n\tOninput          Atom = 0x3f407\n\tOninvalid        Atom = 0x3fb09\n\tOnkeydown        Atom = 0x40409\n\tOnkeypress       Atom = 0x4110a\n\tOnkeyup          Atom = 0x42107\n\tOnload           Atom = 0x43b06\n\tOnloadeddata     Atom = 0x43b0c\n\tOnloadedmetadata Atom = 0x44e10\n\tOnloadstart      Atom = 0x4640b\n\tOnmessage        Atom = 0x46f09\n\tOnmousedown      Atom = 0x4780b\n\tOnmousemove      Atom = 0x4830b\n\tOnmouseout       Atom = 0x48e0a\n\tOnmouseover      Atom = 0x49b0b\n\tOnmouseup        Atom = 0x4a609\n\tOnmousewheel     Atom = 0x4af0c\n\tOnoffline        Atom = 0x4bb09\n\tOnonline         Atom = 0x4c608\n\tOnpagehide       Atom = 0x4ce0a\n\tOnpageshow       Atom = 0x4d90a\n\tOnpause          Atom = 0x4e807\n\tOnplay           Atom = 0x4f206\n\tOnplaying        Atom = 0x4f209\n\tOnpopstate       Atom = 0x4fb0a\n\tOnprogress       Atom = 0x5050a\n\tOnratechange     Atom = 0x5190c\n\tOnreset          Atom = 0x52507\n\tOnresize         Atom = 0x52c08\n\tOnscroll         Atom = 0x53a08\n\tOnseeked         Atom = 0x54208\n\tOnseeking        Atom = 0x54a09\n\tOnselect         Atom = 0x55308\n\tOnshow           Atom = 0x55d06\n\tOnstalled        Atom = 0x56609\n\tOnstorage        Atom = 0x56f09\n\tOnsubmit         Atom = 0x57808\n\tOnsuspend        Atom = 0x58809\n\tOntimeupdate     Atom = 0x1190c\n\tOnunload         Atom = 0x59108\n\tOnvolumechange   Atom = 0x5990e\n\tOnwaiting        Atom = 0x5a709\n\tOpen             Atom = 0x58404\n\tOptgroup         Atom = 0xc008\n\tOptimum          Atom = 0x5b007\n\tOption           Atom = 0x5c506\n\tOutput           Atom = 0x49506\n\tP                Atom = 0xc01\n\tParam            Atom = 0xc05\n\tPattern          Atom = 0x6e07\n\tPing             Atom = 0xab04\n\tPlaceholder      Atom = 0xc70b\n\tPlaintext        Atom = 0xf109\n\tPoster           Atom = 0x17d06\n\tPre              Atom = 0x27f03\n\tPreload          Atom = 0x27f07\n\tProgress         Atom = 0x50708\n\tPrompt           Atom = 0x5bf06\n\tPublic           Atom = 0x42706\n\tQ                Atom = 0x15101\n\tRadiogroup       Atom = 0x30a\n\tReadonly         Atom = 0x31908\n\tRel              Atom = 0x28003\n\tRequired         Atom = 0x1f508\n\tReversed         Atom = 0x5e08\n\tRows             Atom = 0x7704\n\tRowspan          Atom = 0x7707\n\tRp               Atom = 0x1eb02\n\tRt               Atom = 0x16502\n\tRuby             Atom = 0xd104\n\tS                Atom = 0x2c01\n\tSamp             Atom = 0x6b04\n\tSandbox          Atom = 0xe907\n\tScope            Atom = 0x2e905\n\tScoped           Atom = 0x2e906\n\tScript           Atom = 0x28d06\n\tSeamless         Atom = 0x33308\n\tSection          Atom = 0x3dd07\n\tSelect           Atom = 0x55506\n\tSelected         Atom = 0x55508\n\tShape            Atom = 0x1b505\n\tSize             Atom = 0x53004\n\tSizes            Atom = 0x53005\n\tSmall            Atom = 0x1bf05\n\tSource           Atom = 0x1cf06\n\tSpacer           Atom = 0x30006\n\tSpan             Atom = 0x7a04\n\tSpellcheck       Atom = 0x33a0a\n\tSrc              Atom = 0x3d403\n\tSrcdoc           Atom = 0x3d406\n\tSrclang          Atom = 0x41a07\n\tStart            Atom = 0x39705\n\tStep             Atom = 0x5bc04\n\tStrike           Atom = 0x50e06\n\tStrong           Atom = 0x53406\n\tStyle            Atom = 0x5db05\n\tSub              Atom = 0x57a03\n\tSummary          Atom = 0x5e007\n\tSup              Atom = 0x5e703\n\tSvg              Atom = 0x5ea03\n\tSystem           Atom = 0x5ed06\n\tTabindex         Atom = 0x45c08\n\tTable            Atom = 0x43605\n\tTarget           Atom = 0x26a06\n\tTbody            Atom = 0x2e05\n\tTd               Atom = 0x4702\n\tTextarea         Atom = 0x31408\n\tTfoot            Atom = 0x5805\n\tTh               Atom = 0x13002\n\tThead            Atom = 0x2f905\n\tTime             Atom = 0x11b04\n\tTitle            Atom = 0x8e05\n\tTr               Atom = 0xf902\n\tTrack            Atom = 0xf905\n\tTranslate        Atom = 0x16609\n\tTt               Atom = 0x7002\n\tType             Atom = 0x23304\n\tTypemustmatch    Atom = 0x2330d\n\tU                Atom = 0xb01\n\tUl               Atom = 0x5602\n\tUsemap           Atom = 0x4ec06\n\tValue            Atom = 0x4005\n\tVar              Atom = 0x10903\n\tVideo            Atom = 0x2a905\n\tWbr              Atom = 0x14103\n\tWidth            Atom = 0x4e205\n\tWrap             Atom = 0x56204\n\tXmp              Atom = 0xef03\n)\n```\n\n```go\nfunc Lookup(s []byte) Atom\n```\nLookup returns the atom whose name is s. It returns zero if there is no such atom. The lookup is case sensitive.\n\n```go\nfunc (a Atom) String() string\n```\nString returns the atom's name.\n\n","path":"github.com/wfernandes/cli/src/code.google.com/p/go.net/html/atom","name":"atom","synopsis":"Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as \"p\" and \"id\".","isRedistributable":true}
