You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

631 lines
39 KiB

8 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="theme-color" content="#375EAB">
  7. <title>atom - The Go Programming Language</title>
  8. <link type="text/css" rel="stylesheet" href="../../../../../../lib/godoc/style.css">
  9. <link rel="stylesheet" href="../../../../../../lib/godoc/jquery.treeview.css">
  10. <script type="text/javascript">window.initFuncs = [];</script>
  11. </head>
  12. <body>
  13. <div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
  14. ...
  15. </div><!-- #lowframe -->
  16. <div id="topbar" class="wide"><div class="container">
  17. <div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
  18. <div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
  19. <a href="index.html#" id="menu-button"><span id="menu-button-arrow">&#9661;</span></a>
  20. <form method="GET" action="http://localhost:6060/search">
  21. <div id="menu">
  22. <a href="http://localhost:6060/doc/">Documents</a>
  23. <a href="http://localhost:6060/pkg/">Packages</a>
  24. <a href="http://localhost:6060/project/">The Project</a>
  25. <a href="http://localhost:6060/help/">Help</a>
  26. <a href="http://localhost:6060/blog/">Blog</a>
  27. <input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
  28. </div>
  29. </form>
  30. </div></div>
  31. <div id="page" class="wide">
  32. <div class="container">
  33. <h1>Package atom</h1>
  34. <div id="nav"></div>
  35. <!--
  36. Copyright 2009 The Go Authors. All rights reserved.
  37. Use of this source code is governed by a BSD-style
  38. license that can be found in the LICENSE file.
  39. -->
  40. <!--
  41. Note: Static (i.e., not template-generated) href and id
  42. attributes start with "pkg-" to make it impossible for
  43. them to conflict with generated attributes (some of which
  44. correspond to Go identifiers).
  45. -->
  46. <script type='text/javascript'>
  47. document.ANALYSIS_DATA = null;
  48. document.CALLGRAPH = null;
  49. </script>
  50. <div id="short-nav">
  51. <dl>
  52. <dd><code>import "golang.org/x/net/html/atom"</code></dd>
  53. </dl>
  54. <dl>
  55. <dd><a href="index.html#pkg-overview" class="overviewLink">Overview</a></dd>
  56. <dd><a href="index.html#pkg-index" class="indexLink">Index</a></dd>
  57. </dl>
  58. </div>
  59. <!-- The package's Name is printed as title by the top-level template -->
  60. <div id="pkg-overview" class="toggleVisible">
  61. <div class="collapsed">
  62. <h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
  63. </div>
  64. <div class="expanded">
  65. <h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
  66. <p>
  67. Package atom provides integer codes (also known as atoms) for a fixed set of
  68. frequently occurring HTML strings: tag names and attribute keys such as &#34;p&#34;
  69. and &#34;id&#34;.
  70. </p>
  71. <p>
  72. Sharing an atom&#39;s name between all elements with the same tag can result in
  73. fewer string allocations when tokenizing and parsing HTML. Integer
  74. comparisons are also generally faster than string comparisons.
  75. </p>
  76. <p>
  77. The value of an atom&#39;s particular code is not guaranteed to stay the same
  78. between versions of this package. Neither is any ordering guaranteed:
  79. whether atom.H1 &lt; atom.H2 may also change. The codes are not guaranteed to
  80. be dense. The only guarantees are that e.g. looking up &#34;div&#34; will yield
  81. atom.Div, calling atom.Div.String will return &#34;div&#34;, and atom.Div != 0.
  82. </p>
  83. </div>
  84. </div>
  85. <div id="pkg-index" class="toggleVisible">
  86. <div class="collapsed">
  87. <h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
  88. </div>
  89. <div class="expanded">
  90. <h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
  91. <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
  92. <div id="manual-nav">
  93. <dl>
  94. <dd><a href="index.html#String">func String(s []byte) string</a></dd>
  95. <dd><a href="index.html#Atom">type Atom</a></dd>
  96. <dd>&nbsp; &nbsp; <a href="index.html#Lookup">func Lookup(s []byte) Atom</a></dd>
  97. <dd>&nbsp; &nbsp; <a href="index.html#Atom.String">func (a Atom) String() string</a></dd>
  98. </dl>
  99. </div><!-- #manual-nav -->
  100. <h4>Package files</h4>
  101. <p>
  102. <span style="font-size:90%">
  103. <a href="http://localhost:6060/src/golang.org/x/net/html/atom/atom.go">atom.go</a>
  104. <a href="http://localhost:6060/src/golang.org/x/net/html/atom/table.go">table.go</a>
  105. </span>
  106. </p>
  107. </div><!-- .expanded -->
  108. </div><!-- #pkg-index -->
  109. <div id="pkg-callgraph" class="toggle" style="display: none">
  110. <div class="collapsed">
  111. <h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
  112. </div> <!-- .expanded -->
  113. <div class="expanded">
  114. <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
  115. <p>
  116. In the call graph viewer below, each node
  117. is a function belonging to this package
  118. and its children are the functions it
  119. calls&mdash;perhaps dynamically.
  120. </p>
  121. <p>
  122. The root nodes are the entry points of the
  123. package: functions that may be called from
  124. outside the package.
  125. There may be non-exported or anonymous
  126. functions among them if they are called
  127. dynamically from another package.
  128. </p>
  129. <p>
  130. Click a node to visit that function's source code.
  131. From there you can visit its callers by
  132. clicking its declaring <code>func</code>
  133. token.
  134. </p>
  135. <p>
  136. Functions may be omitted if they were
  137. determined to be unreachable in the
  138. particular programs or tests that were
  139. analyzed.
  140. </p>
  141. <!-- Zero means show all package entry points. -->
  142. <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
  143. </div>
  144. </div> <!-- #pkg-callgraph -->
  145. <h2 id="String">func <a href="http://localhost:6060/src/golang.org/x/net/html/atom/atom.go?s=2218:2246#L63">String</a></h2>
  146. <pre>func String(s []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="../../../../../builtin/index.html#string">string</a></pre>
  147. <p>
  148. String returns a string whose contents are equal to s. In that sense, it is
  149. equivalent to string(s) but may be more efficient.
  150. </p>
  151. <h2 id="Atom">type <a href="http://localhost:6060/src/golang.org/x/net/html/atom/atom.go?s=1052:1068#L11">Atom</a></h2>
  152. <pre>type Atom <a href="../../../../../builtin/index.html#uint32">uint32</a></pre>
  153. <p>
  154. Atom is an integer code for a string. The zero value maps to &#34;&#34;.
  155. </p>
  156. <pre>const (
  157. <span id="A">A</span> <a href="index.html#Atom">Atom</a> = 0x1
  158. <span id="Abbr">Abbr</span> <a href="index.html#Atom">Atom</a> = 0x4
  159. <span id="Accept">Accept</span> <a href="index.html#Atom">Atom</a> = 0x2106
  160. <span id="AcceptCharset">AcceptCharset</span> <a href="index.html#Atom">Atom</a> = 0x210e
  161. <span id="Accesskey">Accesskey</span> <a href="index.html#Atom">Atom</a> = 0x3309
  162. <span id="Action">Action</span> <a href="index.html#Atom">Atom</a> = 0x1f606
  163. <span id="Address">Address</span> <a href="index.html#Atom">Atom</a> = 0x4f307
  164. <span id="Align">Align</span> <a href="index.html#Atom">Atom</a> = 0x1105
  165. <span id="Alt">Alt</span> <a href="index.html#Atom">Atom</a> = 0x4503
  166. <span id="Annotation">Annotation</span> <a href="index.html#Atom">Atom</a> = 0x1670a
  167. <span id="AnnotationXml">AnnotationXml</span> <a href="index.html#Atom">Atom</a> = 0x1670e
  168. <span id="Applet">Applet</span> <a href="index.html#Atom">Atom</a> = 0x2b306
  169. <span id="Area">Area</span> <a href="index.html#Atom">Atom</a> = 0x2fa04
  170. <span id="Article">Article</span> <a href="index.html#Atom">Atom</a> = 0x38807
  171. <span id="Aside">Aside</span> <a href="index.html#Atom">Atom</a> = 0x8305
  172. <span id="Async">Async</span> <a href="index.html#Atom">Atom</a> = 0x7b05
  173. <span id="Audio">Audio</span> <a href="index.html#Atom">Atom</a> = 0xa605
  174. <span id="Autocomplete">Autocomplete</span> <a href="index.html#Atom">Atom</a> = 0x1fc0c
  175. <span id="Autofocus">Autofocus</span> <a href="index.html#Atom">Atom</a> = 0xb309
  176. <span id="Autoplay">Autoplay</span> <a href="index.html#Atom">Atom</a> = 0xce08
  177. <span id="B">B</span> <a href="index.html#Atom">Atom</a> = 0x101
  178. <span id="Base">Base</span> <a href="index.html#Atom">Atom</a> = 0xd604
  179. <span id="Basefont">Basefont</span> <a href="index.html#Atom">Atom</a> = 0xd608
  180. <span id="Bdi">Bdi</span> <a href="index.html#Atom">Atom</a> = 0x1a03
  181. <span id="Bdo">Bdo</span> <a href="index.html#Atom">Atom</a> = 0xe703
  182. <span id="Bgsound">Bgsound</span> <a href="index.html#Atom">Atom</a> = 0x11807
  183. <span id="Big">Big</span> <a href="index.html#Atom">Atom</a> = 0x12403
  184. <span id="Blink">Blink</span> <a href="index.html#Atom">Atom</a> = 0x12705
  185. <span id="Blockquote">Blockquote</span> <a href="index.html#Atom">Atom</a> = 0x12c0a
  186. <span id="Body">Body</span> <a href="index.html#Atom">Atom</a> = 0x2f04
  187. <span id="Br">Br</span> <a href="index.html#Atom">Atom</a> = 0x202
  188. <span id="Button">Button</span> <a href="index.html#Atom">Atom</a> = 0x13606
  189. <span id="Canvas">Canvas</span> <a href="index.html#Atom">Atom</a> = 0x7f06
  190. <span id="Caption">Caption</span> <a href="index.html#Atom">Atom</a> = 0x1bb07
  191. <span id="Center">Center</span> <a href="index.html#Atom">Atom</a> = 0x5b506
  192. <span id="Challenge">Challenge</span> <a href="index.html#Atom">Atom</a> = 0x21f09
  193. <span id="Charset">Charset</span> <a href="index.html#Atom">Atom</a> = 0x2807
  194. <span id="Checked">Checked</span> <a href="index.html#Atom">Atom</a> = 0x32807
  195. <span id="Cite">Cite</span> <a href="index.html#Atom">Atom</a> = 0x3c804
  196. <span id="Class">Class</span> <a href="index.html#Atom">Atom</a> = 0x4de05
  197. <span id="Code">Code</span> <a href="index.html#Atom">Atom</a> = 0x14904
  198. <span id="Col">Col</span> <a href="index.html#Atom">Atom</a> = 0x15003
  199. <span id="Colgroup">Colgroup</span> <a href="index.html#Atom">Atom</a> = 0x15008
  200. <span id="Color">Color</span> <a href="index.html#Atom">Atom</a> = 0x15d05
  201. <span id="Cols">Cols</span> <a href="index.html#Atom">Atom</a> = 0x16204
  202. <span id="Colspan">Colspan</span> <a href="index.html#Atom">Atom</a> = 0x16207
  203. <span id="Command">Command</span> <a href="index.html#Atom">Atom</a> = 0x17507
  204. <span id="Content">Content</span> <a href="index.html#Atom">Atom</a> = 0x42307
  205. <span id="Contenteditable">Contenteditable</span> <a href="index.html#Atom">Atom</a> = 0x4230f
  206. <span id="Contextmenu">Contextmenu</span> <a href="index.html#Atom">Atom</a> = 0x3310b
  207. <span id="Controls">Controls</span> <a href="index.html#Atom">Atom</a> = 0x18808
  208. <span id="Coords">Coords</span> <a href="index.html#Atom">Atom</a> = 0x19406
  209. <span id="Crossorigin">Crossorigin</span> <a href="index.html#Atom">Atom</a> = 0x19f0b
  210. <span id="Data">Data</span> <a href="index.html#Atom">Atom</a> = 0x44a04
  211. <span id="Datalist">Datalist</span> <a href="index.html#Atom">Atom</a> = 0x44a08
  212. <span id="Datetime">Datetime</span> <a href="index.html#Atom">Atom</a> = 0x23c08
  213. <span id="Dd">Dd</span> <a href="index.html#Atom">Atom</a> = 0x26702
  214. <span id="Default">Default</span> <a href="index.html#Atom">Atom</a> = 0x8607
  215. <span id="Defer">Defer</span> <a href="index.html#Atom">Atom</a> = 0x14b05
  216. <span id="Del">Del</span> <a href="index.html#Atom">Atom</a> = 0x3ef03
  217. <span id="Desc">Desc</span> <a href="index.html#Atom">Atom</a> = 0x4db04
  218. <span id="Details">Details</span> <a href="index.html#Atom">Atom</a> = 0x4807
  219. <span id="Dfn">Dfn</span> <a href="index.html#Atom">Atom</a> = 0x6103
  220. <span id="Dialog">Dialog</span> <a href="index.html#Atom">Atom</a> = 0x1b06
  221. <span id="Dir">Dir</span> <a href="index.html#Atom">Atom</a> = 0x6903
  222. <span id="Dirname">Dirname</span> <a href="index.html#Atom">Atom</a> = 0x6907
  223. <span id="Disabled">Disabled</span> <a href="index.html#Atom">Atom</a> = 0x10c08
  224. <span id="Div">Div</span> <a href="index.html#Atom">Atom</a> = 0x11303
  225. <span id="Dl">Dl</span> <a href="index.html#Atom">Atom</a> = 0x11e02
  226. <span id="Download">Download</span> <a href="index.html#Atom">Atom</a> = 0x40008
  227. <span id="Draggable">Draggable</span> <a href="index.html#Atom">Atom</a> = 0x17b09
  228. <span id="Dropzone">Dropzone</span> <a href="index.html#Atom">Atom</a> = 0x39108
  229. <span id="Dt">Dt</span> <a href="index.html#Atom">Atom</a> = 0x50902
  230. <span id="Em">Em</span> <a href="index.html#Atom">Atom</a> = 0x6502
  231. <span id="Embed">Embed</span> <a href="index.html#Atom">Atom</a> = 0x6505
  232. <span id="Enctype">Enctype</span> <a href="index.html#Atom">Atom</a> = 0x21107
  233. <span id="Face">Face</span> <a href="index.html#Atom">Atom</a> = 0x5b304
  234. <span id="Fieldset">Fieldset</span> <a href="index.html#Atom">Atom</a> = 0x1b008
  235. <span id="Figcaption">Figcaption</span> <a href="index.html#Atom">Atom</a> = 0x1b80a
  236. <span id="Figure">Figure</span> <a href="index.html#Atom">Atom</a> = 0x1cc06
  237. <span id="Font">Font</span> <a href="index.html#Atom">Atom</a> = 0xda04
  238. <span id="Footer">Footer</span> <a href="index.html#Atom">Atom</a> = 0x8d06
  239. <span id="For">For</span> <a href="index.html#Atom">Atom</a> = 0x1d803
  240. <span id="ForeignObject">ForeignObject</span> <a href="index.html#Atom">Atom</a> = 0x1d80d
  241. <span id="Foreignobject">Foreignobject</span> <a href="index.html#Atom">Atom</a> = 0x1e50d
  242. <span id="Form">Form</span> <a href="index.html#Atom">Atom</a> = 0x1f204
  243. <span id="Formaction">Formaction</span> <a href="index.html#Atom">Atom</a> = 0x1f20a
  244. <span id="Formenctype">Formenctype</span> <a href="index.html#Atom">Atom</a> = 0x20d0b
  245. <span id="Formmethod">Formmethod</span> <a href="index.html#Atom">Atom</a> = 0x2280a
  246. <span id="Formnovalidate">Formnovalidate</span> <a href="index.html#Atom">Atom</a> = 0x2320e
  247. <span id="Formtarget">Formtarget</span> <a href="index.html#Atom">Atom</a> = 0x2470a
  248. <span id="Frame">Frame</span> <a href="index.html#Atom">Atom</a> = 0x9a05
  249. <span id="Frameset">Frameset</span> <a href="index.html#Atom">Atom</a> = 0x9a08
  250. <span id="H1">H1</span> <a href="index.html#Atom">Atom</a> = 0x26e02
  251. <span id="H2">H2</span> <a href="index.html#Atom">Atom</a> = 0x29402
  252. <span id="H3">H3</span> <a href="index.html#Atom">Atom</a> = 0x2a702
  253. <span id="H4">H4</span> <a href="index.html#Atom">Atom</a> = 0x2e902
  254. <span id="H5">H5</span> <a href="index.html#Atom">Atom</a> = 0x2f302
  255. <span id="H6">H6</span> <a href="index.html#Atom">Atom</a> = 0x50b02
  256. <span id="Head">Head</span> <a href="index.html#Atom">Atom</a> = 0x2d504
  257. <span id="Header">Header</span> <a href="index.html#Atom">Atom</a> = 0x2d506
  258. <span id="Headers">Headers</span> <a href="index.html#Atom">Atom</a> = 0x2d507
  259. <span id="Height">Height</span> <a href="index.html#Atom">Atom</a> = 0x25106
  260. <span id="Hgroup">Hgroup</span> <a href="index.html#Atom">Atom</a> = 0x25906
  261. <span id="Hidden">Hidden</span> <a href="index.html#Atom">Atom</a> = 0x26506
  262. <span id="High">High</span> <a href="index.html#Atom">Atom</a> = 0x26b04
  263. <span id="Hr">Hr</span> <a href="index.html#Atom">Atom</a> = 0x27002
  264. <span id="Href">Href</span> <a href="index.html#Atom">Atom</a> = 0x27004
  265. <span id="Hreflang">Hreflang</span> <a href="index.html#Atom">Atom</a> = 0x27008
  266. <span id="Html">Html</span> <a href="index.html#Atom">Atom</a> = 0x25504
  267. <span id="HttpEquiv">HttpEquiv</span> <a href="index.html#Atom">Atom</a> = 0x2780a
  268. <span id="I">I</span> <a href="index.html#Atom">Atom</a> = 0x601
  269. <span id="Icon">Icon</span> <a href="index.html#Atom">Atom</a> = 0x42204
  270. <span id="Id">Id</span> <a href="index.html#Atom">Atom</a> = 0x8502
  271. <span id="Iframe">Iframe</span> <a href="index.html#Atom">Atom</a> = 0x29606
  272. <span id="Image">Image</span> <a href="index.html#Atom">Atom</a> = 0x29c05
  273. <span id="Img">Img</span> <a href="index.html#Atom">Atom</a> = 0x2a103
  274. <span id="Input">Input</span> <a href="index.html#Atom">Atom</a> = 0x3e805
  275. <span id="Inputmode">Inputmode</span> <a href="index.html#Atom">Atom</a> = 0x3e809
  276. <span id="Ins">Ins</span> <a href="index.html#Atom">Atom</a> = 0x1a803
  277. <span id="Isindex">Isindex</span> <a href="index.html#Atom">Atom</a> = 0x2a907
  278. <span id="Ismap">Ismap</span> <a href="index.html#Atom">Atom</a> = 0x2b005
  279. <span id="Itemid">Itemid</span> <a href="index.html#Atom">Atom</a> = 0x33c06
  280. <span id="Itemprop">Itemprop</span> <a href="index.html#Atom">Atom</a> = 0x3c908
  281. <span id="Itemref">Itemref</span> <a href="index.html#Atom">Atom</a> = 0x5ad07
  282. <span id="Itemscope">Itemscope</span> <a href="index.html#Atom">Atom</a> = 0x2b909
  283. <span id="Itemtype">Itemtype</span> <a href="index.html#Atom">Atom</a> = 0x2c308
  284. <span id="Kbd">Kbd</span> <a href="index.html#Atom">Atom</a> = 0x1903
  285. <span id="Keygen">Keygen</span> <a href="index.html#Atom">Atom</a> = 0x3906
  286. <span id="Keytype">Keytype</span> <a href="index.html#Atom">Atom</a> = 0x53707
  287. <span id="Kind">Kind</span> <a href="index.html#Atom">Atom</a> = 0x10904
  288. <span id="Label">Label</span> <a href="index.html#Atom">Atom</a> = 0xf005
  289. <span id="Lang">Lang</span> <a href="index.html#Atom">Atom</a> = 0x27404
  290. <span id="Legend">Legend</span> <a href="index.html#Atom">Atom</a> = 0x18206
  291. <span id="Li">Li</span> <a href="index.html#Atom">Atom</a> = 0x1202
  292. <span id="Link">Link</span> <a href="index.html#Atom">Atom</a> = 0x12804
  293. <span id="List">List</span> <a href="index.html#Atom">Atom</a> = 0x44e04
  294. <span id="Listing">Listing</span> <a href="index.html#Atom">Atom</a> = 0x44e07
  295. <span id="Loop">Loop</span> <a href="index.html#Atom">Atom</a> = 0xf404
  296. <span id="Low">Low</span> <a href="index.html#Atom">Atom</a> = 0x11f03
  297. <span id="Malignmark">Malignmark</span> <a href="index.html#Atom">Atom</a> = 0x100a
  298. <span id="Manifest">Manifest</span> <a href="index.html#Atom">Atom</a> = 0x5f108
  299. <span id="Map">Map</span> <a href="index.html#Atom">Atom</a> = 0x2b203
  300. <span id="Mark">Mark</span> <a href="index.html#Atom">Atom</a> = 0x1604
  301. <span id="Marquee">Marquee</span> <a href="index.html#Atom">Atom</a> = 0x2cb07
  302. <span id="Math">Math</span> <a href="index.html#Atom">Atom</a> = 0x2d204
  303. <span id="Max">Max</span> <a href="index.html#Atom">Atom</a> = 0x2e103
  304. <span id="Maxlength">Maxlength</span> <a href="index.html#Atom">Atom</a> = 0x2e109
  305. <span id="Media">Media</span> <a href="index.html#Atom">Atom</a> = 0x6e05
  306. <span id="Mediagroup">Mediagroup</span> <a href="index.html#Atom">Atom</a> = 0x6e0a
  307. <span id="Menu">Menu</span> <a href="index.html#Atom">Atom</a> = 0x33804
  308. <span id="Menuitem">Menuitem</span> <a href="index.html#Atom">Atom</a> = 0x33808
  309. <span id="Meta">Meta</span> <a href="index.html#Atom">Atom</a> = 0x45d04
  310. <span id="Meter">Meter</span> <a href="index.html#Atom">Atom</a> = 0x24205
  311. <span id="Method">Method</span> <a href="index.html#Atom">Atom</a> = 0x22c06
  312. <span id="Mglyph">Mglyph</span> <a href="index.html#Atom">Atom</a> = 0x2a206
  313. <span id="Mi">Mi</span> <a href="index.html#Atom">Atom</a> = 0x2eb02
  314. <span id="Min">Min</span> <a href="index.html#Atom">Atom</a> = 0x2eb03
  315. <span id="Minlength">Minlength</span> <a href="index.html#Atom">Atom</a> = 0x2eb09
  316. <span id="Mn">Mn</span> <a href="index.html#Atom">Atom</a> = 0x23502
  317. <span id="Mo">Mo</span> <a href="index.html#Atom">Atom</a> = 0x3ed02
  318. <span id="Ms">Ms</span> <a href="index.html#Atom">Atom</a> = 0x2bc02
  319. <span id="Mtext">Mtext</span> <a href="index.html#Atom">Atom</a> = 0x2f505
  320. <span id="Multiple">Multiple</span> <a href="index.html#Atom">Atom</a> = 0x30308
  321. <span id="Muted">Muted</span> <a href="index.html#Atom">Atom</a> = 0x30b05
  322. <span id="Name">Name</span> <a href="index.html#Atom">Atom</a> = 0x6c04
  323. <span id="Nav">Nav</span> <a href="index.html#Atom">Atom</a> = 0x3e03
  324. <span id="Nobr">Nobr</span> <a href="index.html#Atom">Atom</a> = 0x5704
  325. <span id="Noembed">Noembed</span> <a href="index.html#Atom">Atom</a> = 0x6307
  326. <span id="Noframes">Noframes</span> <a href="index.html#Atom">Atom</a> = 0x9808
  327. <span id="Noscript">Noscript</span> <a href="index.html#Atom">Atom</a> = 0x3d208
  328. <span id="Novalidate">Novalidate</span> <a href="index.html#Atom">Atom</a> = 0x2360a
  329. <span id="Object">Object</span> <a href="index.html#Atom">Atom</a> = 0x1ec06
  330. <span id="Ol">Ol</span> <a href="index.html#Atom">Atom</a> = 0xc902
  331. <span id="Onabort">Onabort</span> <a href="index.html#Atom">Atom</a> = 0x13a07
  332. <span id="Onafterprint">Onafterprint</span> <a href="index.html#Atom">Atom</a> = 0x1c00c
  333. <span id="Onautocomplete">Onautocomplete</span> <a href="index.html#Atom">Atom</a> = 0x1fa0e
  334. <span id="Onautocompleteerror">Onautocompleteerror</span> <a href="index.html#Atom">Atom</a> = 0x1fa13
  335. <span id="Onbeforeprint">Onbeforeprint</span> <a href="index.html#Atom">Atom</a> = 0x6040d
  336. <span id="Onbeforeunload">Onbeforeunload</span> <a href="index.html#Atom">Atom</a> = 0x4e70e
  337. <span id="Onblur">Onblur</span> <a href="index.html#Atom">Atom</a> = 0xaa06
  338. <span id="Oncancel">Oncancel</span> <a href="index.html#Atom">Atom</a> = 0xe908
  339. <span id="Oncanplay">Oncanplay</span> <a href="index.html#Atom">Atom</a> = 0x28509
  340. <span id="Oncanplaythrough">Oncanplaythrough</span> <a href="index.html#Atom">Atom</a> = 0x28510
  341. <span id="Onchange">Onchange</span> <a href="index.html#Atom">Atom</a> = 0x3a708
  342. <span id="Onclick">Onclick</span> <a href="index.html#Atom">Atom</a> = 0x31007
  343. <span id="Onclose">Onclose</span> <a href="index.html#Atom">Atom</a> = 0x31707
  344. <span id="Oncontextmenu">Oncontextmenu</span> <a href="index.html#Atom">Atom</a> = 0x32f0d
  345. <span id="Oncuechange">Oncuechange</span> <a href="index.html#Atom">Atom</a> = 0x3420b
  346. <span id="Ondblclick">Ondblclick</span> <a href="index.html#Atom">Atom</a> = 0x34d0a
  347. <span id="Ondrag">Ondrag</span> <a href="index.html#Atom">Atom</a> = 0x35706
  348. <span id="Ondragend">Ondragend</span> <a href="index.html#Atom">Atom</a> = 0x35709
  349. <span id="Ondragenter">Ondragenter</span> <a href="index.html#Atom">Atom</a> = 0x3600b
  350. <span id="Ondragleave">Ondragleave</span> <a href="index.html#Atom">Atom</a> = 0x36b0b
  351. <span id="Ondragover">Ondragover</span> <a href="index.html#Atom">Atom</a> = 0x3760a
  352. <span id="Ondragstart">Ondragstart</span> <a href="index.html#Atom">Atom</a> = 0x3800b
  353. <span id="Ondrop">Ondrop</span> <a href="index.html#Atom">Atom</a> = 0x38f06
  354. <span id="Ondurationchange">Ondurationchange</span> <a href="index.html#Atom">Atom</a> = 0x39f10
  355. <span id="Onemptied">Onemptied</span> <a href="index.html#Atom">Atom</a> = 0x39609
  356. <span id="Onended">Onended</span> <a href="index.html#Atom">Atom</a> = 0x3af07
  357. <span id="Onerror">Onerror</span> <a href="index.html#Atom">Atom</a> = 0x3b607
  358. <span id="Onfocus">Onfocus</span> <a href="index.html#Atom">Atom</a> = 0x3bd07
  359. <span id="Onhashchange">Onhashchange</span> <a href="index.html#Atom">Atom</a> = 0x3da0c
  360. <span id="Oninput">Oninput</span> <a href="index.html#Atom">Atom</a> = 0x3e607
  361. <span id="Oninvalid">Oninvalid</span> <a href="index.html#Atom">Atom</a> = 0x3f209
  362. <span id="Onkeydown">Onkeydown</span> <a href="index.html#Atom">Atom</a> = 0x3fb09
  363. <span id="Onkeypress">Onkeypress</span> <a href="index.html#Atom">Atom</a> = 0x4080a
  364. <span id="Onkeyup">Onkeyup</span> <a href="index.html#Atom">Atom</a> = 0x41807
  365. <span id="Onlanguagechange">Onlanguagechange</span> <a href="index.html#Atom">Atom</a> = 0x43210
  366. <span id="Onload">Onload</span> <a href="index.html#Atom">Atom</a> = 0x44206
  367. <span id="Onloadeddata">Onloadeddata</span> <a href="index.html#Atom">Atom</a> = 0x4420c
  368. <span id="Onloadedmetadata">Onloadedmetadata</span> <a href="index.html#Atom">Atom</a> = 0x45510
  369. <span id="Onloadstart">Onloadstart</span> <a href="index.html#Atom">Atom</a> = 0x46b0b
  370. <span id="Onmessage">Onmessage</span> <a href="index.html#Atom">Atom</a> = 0x47609
  371. <span id="Onmousedown">Onmousedown</span> <a href="index.html#Atom">Atom</a> = 0x47f0b
  372. <span id="Onmousemove">Onmousemove</span> <a href="index.html#Atom">Atom</a> = 0x48a0b
  373. <span id="Onmouseout">Onmouseout</span> <a href="index.html#Atom">Atom</a> = 0x4950a
  374. <span id="Onmouseover">Onmouseover</span> <a href="index.html#Atom">Atom</a> = 0x4a20b
  375. <span id="Onmouseup">Onmouseup</span> <a href="index.html#Atom">Atom</a> = 0x4ad09
  376. <span id="Onmousewheel">Onmousewheel</span> <a href="index.html#Atom">Atom</a> = 0x4b60c
  377. <span id="Onoffline">Onoffline</span> <a href="index.html#Atom">Atom</a> = 0x4c209
  378. <span id="Ononline">Ononline</span> <a href="index.html#Atom">Atom</a> = 0x4cb08
  379. <span id="Onpagehide">Onpagehide</span> <a href="index.html#Atom">Atom</a> = 0x4d30a
  380. <span id="Onpageshow">Onpageshow</span> <a href="index.html#Atom">Atom</a> = 0x4fe0a
  381. <span id="Onpause">Onpause</span> <a href="index.html#Atom">Atom</a> = 0x50d07
  382. <span id="Onplay">Onplay</span> <a href="index.html#Atom">Atom</a> = 0x51706
  383. <span id="Onplaying">Onplaying</span> <a href="index.html#Atom">Atom</a> = 0x51709
  384. <span id="Onpopstate">Onpopstate</span> <a href="index.html#Atom">Atom</a> = 0x5200a
  385. <span id="Onprogress">Onprogress</span> <a href="index.html#Atom">Atom</a> = 0x52a0a
  386. <span id="Onratechange">Onratechange</span> <a href="index.html#Atom">Atom</a> = 0x53e0c
  387. <span id="Onreset">Onreset</span> <a href="index.html#Atom">Atom</a> = 0x54a07
  388. <span id="Onresize">Onresize</span> <a href="index.html#Atom">Atom</a> = 0x55108
  389. <span id="Onscroll">Onscroll</span> <a href="index.html#Atom">Atom</a> = 0x55f08
  390. <span id="Onseeked">Onseeked</span> <a href="index.html#Atom">Atom</a> = 0x56708
  391. <span id="Onseeking">Onseeking</span> <a href="index.html#Atom">Atom</a> = 0x56f09
  392. <span id="Onselect">Onselect</span> <a href="index.html#Atom">Atom</a> = 0x57808
  393. <span id="Onshow">Onshow</span> <a href="index.html#Atom">Atom</a> = 0x58206
  394. <span id="Onsort">Onsort</span> <a href="index.html#Atom">Atom</a> = 0x58b06
  395. <span id="Onstalled">Onstalled</span> <a href="index.html#Atom">Atom</a> = 0x59509
  396. <span id="Onstorage">Onstorage</span> <a href="index.html#Atom">Atom</a> = 0x59e09
  397. <span id="Onsubmit">Onsubmit</span> <a href="index.html#Atom">Atom</a> = 0x5a708
  398. <span id="Onsuspend">Onsuspend</span> <a href="index.html#Atom">Atom</a> = 0x5bb09
  399. <span id="Ontimeupdate">Ontimeupdate</span> <a href="index.html#Atom">Atom</a> = 0xdb0c
  400. <span id="Ontoggle">Ontoggle</span> <a href="index.html#Atom">Atom</a> = 0x5c408
  401. <span id="Onunload">Onunload</span> <a href="index.html#Atom">Atom</a> = 0x5cc08
  402. <span id="Onvolumechange">Onvolumechange</span> <a href="index.html#Atom">Atom</a> = 0x5d40e
  403. <span id="Onwaiting">Onwaiting</span> <a href="index.html#Atom">Atom</a> = 0x5e209
  404. <span id="Open">Open</span> <a href="index.html#Atom">Atom</a> = 0x3cf04
  405. <span id="Optgroup">Optgroup</span> <a href="index.html#Atom">Atom</a> = 0xf608
  406. <span id="Optimum">Optimum</span> <a href="index.html#Atom">Atom</a> = 0x5eb07
  407. <span id="Option">Option</span> <a href="index.html#Atom">Atom</a> = 0x60006
  408. <span id="Output">Output</span> <a href="index.html#Atom">Atom</a> = 0x49c06
  409. <span id="P">P</span> <a href="index.html#Atom">Atom</a> = 0xc01
  410. <span id="Param">Param</span> <a href="index.html#Atom">Atom</a> = 0xc05
  411. <span id="Pattern">Pattern</span> <a href="index.html#Atom">Atom</a> = 0x5107
  412. <span id="Ping">Ping</span> <a href="index.html#Atom">Atom</a> = 0x7704
  413. <span id="Placeholder">Placeholder</span> <a href="index.html#Atom">Atom</a> = 0xc30b
  414. <span id="Plaintext">Plaintext</span> <a href="index.html#Atom">Atom</a> = 0xfd09
  415. <span id="Poster">Poster</span> <a href="index.html#Atom">Atom</a> = 0x15706
  416. <span id="Pre">Pre</span> <a href="index.html#Atom">Atom</a> = 0x25e03
  417. <span id="Preload">Preload</span> <a href="index.html#Atom">Atom</a> = 0x25e07
  418. <span id="Progress">Progress</span> <a href="index.html#Atom">Atom</a> = 0x52c08
  419. <span id="Prompt">Prompt</span> <a href="index.html#Atom">Atom</a> = 0x5fa06
  420. <span id="Public">Public</span> <a href="index.html#Atom">Atom</a> = 0x41e06
  421. <span id="Q">Q</span> <a href="index.html#Atom">Atom</a> = 0x13101
  422. <span id="Radiogroup">Radiogroup</span> <a href="index.html#Atom">Atom</a> = 0x30a
  423. <span id="Readonly">Readonly</span> <a href="index.html#Atom">Atom</a> = 0x2fb08
  424. <span id="Rel">Rel</span> <a href="index.html#Atom">Atom</a> = 0x25f03
  425. <span id="Required">Required</span> <a href="index.html#Atom">Atom</a> = 0x1d008
  426. <span id="Reversed">Reversed</span> <a href="index.html#Atom">Atom</a> = 0x5a08
  427. <span id="Rows">Rows</span> <a href="index.html#Atom">Atom</a> = 0x9204
  428. <span id="Rowspan">Rowspan</span> <a href="index.html#Atom">Atom</a> = 0x9207
  429. <span id="Rp">Rp</span> <a href="index.html#Atom">Atom</a> = 0x1c602
  430. <span id="Rt">Rt</span> <a href="index.html#Atom">Atom</a> = 0x13f02
  431. <span id="Ruby">Ruby</span> <a href="index.html#Atom">Atom</a> = 0xaf04
  432. <span id="S">S</span> <a href="index.html#Atom">Atom</a> = 0x2c01
  433. <span id="Samp">Samp</span> <a href="index.html#Atom">Atom</a> = 0x4e04
  434. <span id="Sandbox">Sandbox</span> <a href="index.html#Atom">Atom</a> = 0xbb07
  435. <span id="Scope">Scope</span> <a href="index.html#Atom">Atom</a> = 0x2bd05
  436. <span id="Scoped">Scoped</span> <a href="index.html#Atom">Atom</a> = 0x2bd06
  437. <span id="Script">Script</span> <a href="index.html#Atom">Atom</a> = 0x3d406
  438. <span id="Seamless">Seamless</span> <a href="index.html#Atom">Atom</a> = 0x31c08
  439. <span id="Section">Section</span> <a href="index.html#Atom">Atom</a> = 0x4e207
  440. <span id="Select">Select</span> <a href="index.html#Atom">Atom</a> = 0x57a06
  441. <span id="Selected">Selected</span> <a href="index.html#Atom">Atom</a> = 0x57a08
  442. <span id="Shape">Shape</span> <a href="index.html#Atom">Atom</a> = 0x4f905
  443. <span id="Size">Size</span> <a href="index.html#Atom">Atom</a> = 0x55504
  444. <span id="Sizes">Sizes</span> <a href="index.html#Atom">Atom</a> = 0x55505
  445. <span id="Small">Small</span> <a href="index.html#Atom">Atom</a> = 0x18f05
  446. <span id="Sortable">Sortable</span> <a href="index.html#Atom">Atom</a> = 0x58d08
  447. <span id="Sorted">Sorted</span> <a href="index.html#Atom">Atom</a> = 0x19906
  448. <span id="Source">Source</span> <a href="index.html#Atom">Atom</a> = 0x1aa06
  449. <span id="Spacer">Spacer</span> <a href="index.html#Atom">Atom</a> = 0x2db06
  450. <span id="Span">Span</span> <a href="index.html#Atom">Atom</a> = 0x9504
  451. <span id="Spellcheck">Spellcheck</span> <a href="index.html#Atom">Atom</a> = 0x3230a
  452. <span id="Src">Src</span> <a href="index.html#Atom">Atom</a> = 0x3c303
  453. <span id="Srcdoc">Srcdoc</span> <a href="index.html#Atom">Atom</a> = 0x3c306
  454. <span id="Srclang">Srclang</span> <a href="index.html#Atom">Atom</a> = 0x41107
  455. <span id="Start">Start</span> <a href="index.html#Atom">Atom</a> = 0x38605
  456. <span id="Step">Step</span> <a href="index.html#Atom">Atom</a> = 0x5f704
  457. <span id="Strike">Strike</span> <a href="index.html#Atom">Atom</a> = 0x53306
  458. <span id="Strong">Strong</span> <a href="index.html#Atom">Atom</a> = 0x55906
  459. <span id="Style">Style</span> <a href="index.html#Atom">Atom</a> = 0x61105
  460. <span id="Sub">Sub</span> <a href="index.html#Atom">Atom</a> = 0x5a903
  461. <span id="Summary">Summary</span> <a href="index.html#Atom">Atom</a> = 0x61607
  462. <span id="Sup">Sup</span> <a href="index.html#Atom">Atom</a> = 0x61d03
  463. <span id="Svg">Svg</span> <a href="index.html#Atom">Atom</a> = 0x62003
  464. <span id="System">System</span> <a href="index.html#Atom">Atom</a> = 0x62306
  465. <span id="Tabindex">Tabindex</span> <a href="index.html#Atom">Atom</a> = 0x46308
  466. <span id="Table">Table</span> <a href="index.html#Atom">Atom</a> = 0x42d05
  467. <span id="Target">Target</span> <a href="index.html#Atom">Atom</a> = 0x24b06
  468. <span id="Tbody">Tbody</span> <a href="index.html#Atom">Atom</a> = 0x2e05
  469. <span id="Td">Td</span> <a href="index.html#Atom">Atom</a> = 0x4702
  470. <span id="Template">Template</span> <a href="index.html#Atom">Atom</a> = 0x62608
  471. <span id="Textarea">Textarea</span> <a href="index.html#Atom">Atom</a> = 0x2f608
  472. <span id="Tfoot">Tfoot</span> <a href="index.html#Atom">Atom</a> = 0x8c05
  473. <span id="Th">Th</span> <a href="index.html#Atom">Atom</a> = 0x22e02
  474. <span id="Thead">Thead</span> <a href="index.html#Atom">Atom</a> = 0x2d405
  475. <span id="Time">Time</span> <a href="index.html#Atom">Atom</a> = 0xdd04
  476. <span id="Title">Title</span> <a href="index.html#Atom">Atom</a> = 0xa105
  477. <span id="Tr">Tr</span> <a href="index.html#Atom">Atom</a> = 0x10502
  478. <span id="Track">Track</span> <a href="index.html#Atom">Atom</a> = 0x10505
  479. <span id="Translate">Translate</span> <a href="index.html#Atom">Atom</a> = 0x14009
  480. <span id="Tt">Tt</span> <a href="index.html#Atom">Atom</a> = 0x5302
  481. <span id="Type">Type</span> <a href="index.html#Atom">Atom</a> = 0x21404
  482. <span id="Typemustmatch">Typemustmatch</span> <a href="index.html#Atom">Atom</a> = 0x2140d
  483. <span id="U">U</span> <a href="index.html#Atom">Atom</a> = 0xb01
  484. <span id="Ul">Ul</span> <a href="index.html#Atom">Atom</a> = 0x8a02
  485. <span id="Usemap">Usemap</span> <a href="index.html#Atom">Atom</a> = 0x51106
  486. <span id="Value">Value</span> <a href="index.html#Atom">Atom</a> = 0x4005
  487. <span id="Var">Var</span> <a href="index.html#Atom">Atom</a> = 0x11503
  488. <span id="Video">Video</span> <a href="index.html#Atom">Atom</a> = 0x28105
  489. <span id="Wbr">Wbr</span> <a href="index.html#Atom">Atom</a> = 0x12103
  490. <span id="Width">Width</span> <a href="index.html#Atom">Atom</a> = 0x50705
  491. <span id="Wrap">Wrap</span> <a href="index.html#Atom">Atom</a> = 0x58704
  492. <span id="Xmp">Xmp</span> <a href="index.html#Atom">Atom</a> = 0xc103
  493. )</pre>
  494. <h3 id="Lookup">func <a href="http://localhost:6060/src/golang.org/x/net/html/atom/atom.go?s=1758:1784#L47">Lookup</a></h3>
  495. <pre>func Lookup(s []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="index.html#Atom">Atom</a></pre>
  496. <p>
  497. Lookup returns the atom whose name is s. It returns zero if there is no
  498. such atom. The lookup is case sensitive.
  499. </p>
  500. <h3 id="Atom.String">func (Atom) <a href="http://localhost:6060/src/golang.org/x/net/html/atom/atom.go?s=1105:1134#L14">String</a></h3>
  501. <pre>func (a <a href="index.html#Atom">Atom</a>) String() <a href="../../../../../builtin/index.html#string">string</a></pre>
  502. <p>
  503. String returns the atom&#39;s name.
  504. </p>
  505. <div id="footer">
  506. Build version go1.6.<br>
  507. Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
  508. the content of this page is licensed under the
  509. Creative Commons Attribution 3.0 License,
  510. and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
  511. <a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
  512. <a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
  513. </div>
  514. </div><!-- .container -->
  515. </div><!-- #page -->
  516. <!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
  517. <script type="text/javascript" src="../../../../../../lib/godoc/jquery.js"></script>
  518. <script type="text/javascript" src="../../../../../../lib/godoc/jquery.treeview.js"></script>
  519. <script type="text/javascript" src="../../../../../../lib/godoc/jquery.treeview.edit.js"></script>
  520. <script type="text/javascript" src="../../../../../../lib/godoc/godocs.js"></script>
  521. </body>
  522. </html>