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.

487 lines
16 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>ext - 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 ext</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 "github.com/mmcdole/gofeed/extensions"</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. </div>
  67. </div>
  68. <div id="pkg-index" class="toggleVisible">
  69. <div class="collapsed">
  70. <h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
  71. </div>
  72. <div class="expanded">
  73. <h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
  74. <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
  75. <div id="manual-nav">
  76. <dl>
  77. <dd><a href="index.html#DublinCoreExtension">type DublinCoreExtension</a></dd>
  78. <dd>&nbsp; &nbsp; <a href="index.html#NewDublinCoreExtension">func NewDublinCoreExtension(extensions map[string][]Extension) *DublinCoreExtension</a></dd>
  79. <dd><a href="index.html#Extension">type Extension</a></dd>
  80. <dd><a href="index.html#Extensions">type Extensions</a></dd>
  81. <dd><a href="index.html#ITunesCategory">type ITunesCategory</a></dd>
  82. <dd><a href="index.html#ITunesFeedExtension">type ITunesFeedExtension</a></dd>
  83. <dd>&nbsp; &nbsp; <a href="index.html#NewITunesFeedExtension">func NewITunesFeedExtension(extensions map[string][]Extension) *ITunesFeedExtension</a></dd>
  84. <dd><a href="index.html#ITunesItemExtension">type ITunesItemExtension</a></dd>
  85. <dd>&nbsp; &nbsp; <a href="index.html#NewITunesItemExtension">func NewITunesItemExtension(extensions map[string][]Extension) *ITunesItemExtension</a></dd>
  86. <dd><a href="index.html#ITunesOwner">type ITunesOwner</a></dd>
  87. </dl>
  88. </div><!-- #manual-nav -->
  89. <h4>Package files</h4>
  90. <p>
  91. <span style="font-size:90%">
  92. <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/dublincore.go">dublincore.go</a>
  93. <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/extensions.go">extensions.go</a>
  94. <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go">itunes.go</a>
  95. </span>
  96. </p>
  97. </div><!-- .expanded -->
  98. </div><!-- #pkg-index -->
  99. <div id="pkg-callgraph" class="toggle" style="display: none">
  100. <div class="collapsed">
  101. <h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
  102. </div> <!-- .expanded -->
  103. <div class="expanded">
  104. <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
  105. <p>
  106. In the call graph viewer below, each node
  107. is a function belonging to this package
  108. and its children are the functions it
  109. calls&mdash;perhaps dynamically.
  110. </p>
  111. <p>
  112. The root nodes are the entry points of the
  113. package: functions that may be called from
  114. outside the package.
  115. There may be non-exported or anonymous
  116. functions among them if they are called
  117. dynamically from another package.
  118. </p>
  119. <p>
  120. Click a node to visit that function's source code.
  121. From there you can visit its callers by
  122. clicking its declaring <code>func</code>
  123. token.
  124. </p>
  125. <p>
  126. Functions may be omitted if they were
  127. determined to be unreachable in the
  128. particular programs or tests that were
  129. analyzed.
  130. </p>
  131. <!-- Zero means show all package entry points. -->
  132. <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
  133. </div>
  134. </div> <!-- #pkg-callgraph -->
  135. <h2 id="DublinCoreExtension">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/dublincore.go?s=102:925#L1">DublinCoreExtension</a></h2>
  136. <pre>type DublinCoreExtension struct {
  137. Title []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;title,omitempty&#34;`
  138. Creator []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;creator,omitempty&#34;`
  139. Author []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;author,omitempty&#34;`
  140. Subject []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;subject,omitempty&#34;`
  141. Description []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;description,omitempty&#34;`
  142. Publisher []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;publisher,omitempty&#34;`
  143. Contributor []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;contributor,omitempty&#34;`
  144. Date []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;date,omitempty&#34;`
  145. Type []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;type,omitempty&#34;`
  146. Format []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;format,omitempty&#34;`
  147. Identifier []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;identifier,omitempty&#34;`
  148. Source []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;source,omitempty&#34;`
  149. Language []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;language,omitempty&#34;`
  150. Relation []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;relation,omitempty&#34;`
  151. Coverage []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;coverage,omitempty&#34;`
  152. Rights []<a href="../../../../builtin/index.html#string">string</a> `json:&#34;rights,omitempty&#34;`
  153. }</pre>
  154. <p>
  155. DublinCoreExtension represents a feed extension
  156. for the Dublin Core specification.
  157. </p>
  158. <h3 id="NewDublinCoreExtension">func <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/dublincore.go?s=1043:1126#L16">NewDublinCoreExtension</a></h3>
  159. <pre>func NewDublinCoreExtension(extensions map[<a href="../../../../builtin/index.html#string">string</a>][]<a href="index.html#Extension">Extension</a>) *<a href="index.html#DublinCoreExtension">DublinCoreExtension</a></pre>
  160. <p>
  161. NewDublinCoreExtension creates a new DublinCoreExtension
  162. given the generic extension map for the &#34;dc&#34; prefix.
  163. </p>
  164. <h2 id="Extension">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/extensions.go?s=364:583#L1">Extension</a></h2>
  165. <pre>type Extension struct {
  166. Name <a href="../../../../builtin/index.html#string">string</a> `json:&#34;name&#34;`
  167. Value <a href="../../../../builtin/index.html#string">string</a> `json:&#34;value&#34;`
  168. Attrs map[<a href="../../../../builtin/index.html#string">string</a>]<a href="../../../../builtin/index.html#string">string</a> `json:&#34;attrs&#34;`
  169. Children map[<a href="../../../../builtin/index.html#string">string</a>][]<a href="index.html#Extension">Extension</a> `json:&#34;children&#34;`
  170. }</pre>
  171. <p>
  172. Extension represents a single XML element that was in a non
  173. default namespace in a Feed or Item/Entry.
  174. </p>
  175. <h2 id="Extensions">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/extensions.go?s=204:253#L1">Extensions</a></h2>
  176. <pre>type Extensions map[<a href="../../../../builtin/index.html#string">string</a>]map[<a href="../../../../builtin/index.html#string">string</a>][]<a href="index.html#Extension">Extension</a></pre>
  177. <p>
  178. Extensions is the generic extension map for Feeds and Items.
  179. The first map is for the element namespace prefix (e.g., itunes).
  180. The second map is for the element name (e.g., author).
  181. </p>
  182. <h2 id="ITunesCategory">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go?s=1452:1595#L25">ITunesCategory</a></h2>
  183. <pre>type ITunesCategory struct {
  184. Text <a href="../../../../builtin/index.html#string">string</a> `json:&#34;text,omitempty&#34;`
  185. Subcategory *<a href="index.html#ITunesCategory">ITunesCategory</a> `json:&#34;subcategory,omitempty&#34;`
  186. }</pre>
  187. <p>
  188. ITunesCategory is a category element for itunes feeds.
  189. </p>
  190. <h2 id="ITunesFeedExtension">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go?s=83:748#L1">ITunesFeedExtension</a></h2>
  191. <pre>type ITunesFeedExtension struct {
  192. Author <a href="../../../../builtin/index.html#string">string</a> `json:&#34;author,omitempty&#34;`
  193. Block <a href="../../../../builtin/index.html#string">string</a> `json:&#34;block,omitempty&#34;`
  194. Categories []*<a href="index.html#ITunesCategory">ITunesCategory</a> `json:&#34;categories,omitempty&#34;`
  195. Explicit <a href="../../../../builtin/index.html#string">string</a> `json:&#34;explicit,omitempty&#34;`
  196. Keywords <a href="../../../../builtin/index.html#string">string</a> `json:&#34;keywords,omitempty&#34;`
  197. Owner *<a href="index.html#ITunesOwner">ITunesOwner</a> `json:&#34;owner,omitempty&#34;`
  198. Subtitle <a href="../../../../builtin/index.html#string">string</a> `json:&#34;subtitle,omitempty&#34;`
  199. Summary <a href="../../../../builtin/index.html#string">string</a> `json:&#34;summary,omitempty&#34;`
  200. Image <a href="../../../../builtin/index.html#string">string</a> `json:&#34;image,omitempty&#34;`
  201. Complete <a href="../../../../builtin/index.html#string">string</a> `json:&#34;complete,omitempty&#34;`
  202. NewFeedURL <a href="../../../../builtin/index.html#string">string</a> `json:&#34;newFeedUrl,omitempty&#34;`
  203. }</pre>
  204. <p>
  205. ITunesFeedExtension is a set of extension
  206. fields for RSS feeds.
  207. </p>
  208. <h3 id="NewITunesFeedExtension">func <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go?s=1865:1948#L38">NewITunesFeedExtension</a></h3>
  209. <pre>func NewITunesFeedExtension(extensions map[<a href="../../../../builtin/index.html#string">string</a>][]<a href="index.html#Extension">Extension</a>) *<a href="index.html#ITunesFeedExtension">ITunesFeedExtension</a></pre>
  210. <p>
  211. NewITunesFeedExtension creates an ITunesFeedExtension given an
  212. extension map for the &#34;itunes&#34; key.
  213. </p>
  214. <h2 id="ITunesItemExtension">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go?s=820:1392#L11">ITunesItemExtension</a></h2>
  215. <pre>type ITunesItemExtension struct {
  216. Author <a href="../../../../builtin/index.html#string">string</a> `json:&#34;author,omitempty&#34;`
  217. Block <a href="../../../../builtin/index.html#string">string</a> `json:&#34;block,omitempty&#34;`
  218. Duration <a href="../../../../builtin/index.html#string">string</a> `json:&#34;duration,omitempty&#34;`
  219. Explicit <a href="../../../../builtin/index.html#string">string</a> `json:&#34;explicit,omitempty&#34;`
  220. Keywords <a href="../../../../builtin/index.html#string">string</a> `json:&#34;keywords,omitempty&#34;`
  221. Subtitle <a href="../../../../builtin/index.html#string">string</a> `json:&#34;subtitle,omitempty&#34;`
  222. Summary <a href="../../../../builtin/index.html#string">string</a> `json:&#34;summary,omitempty&#34;`
  223. Image <a href="../../../../builtin/index.html#string">string</a> `json:&#34;image,omitempty&#34;`
  224. IsClosedCaptioned <a href="../../../../builtin/index.html#string">string</a> `json:&#34;isClosedCaptioned,omitempty&#34;`
  225. Order <a href="../../../../builtin/index.html#string">string</a> `json:&#34;order,omitempty&#34;`
  226. }</pre>
  227. <p>
  228. ITunesItemExtension is a set of extension
  229. fields for RSS items.
  230. </p>
  231. <h3 id="NewITunesItemExtension">func <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go?s=2699:2782#L56">NewITunesItemExtension</a></h3>
  232. <pre>func NewITunesItemExtension(extensions map[<a href="../../../../builtin/index.html#string">string</a>][]<a href="index.html#Extension">Extension</a>) *<a href="index.html#ITunesItemExtension">ITunesItemExtension</a></pre>
  233. <p>
  234. NewITunesItemExtension creates an ITunesItemExtension given an
  235. extension map for the &#34;itunes&#34; key.
  236. </p>
  237. <h2 id="ITunesOwner">type <a href="http://localhost:6060/src/github.com/mmcdole/gofeed/extensions/itunes.go?s=1654:1758#L31">ITunesOwner</a></h2>
  238. <pre>type ITunesOwner struct {
  239. Email <a href="../../../../builtin/index.html#string">string</a> `json:&#34;email,omitempty&#34;`
  240. Name <a href="../../../../builtin/index.html#string">string</a> `json:&#34;name,omitempty&#34;`
  241. }</pre>
  242. <p>
  243. ITunesOwner is the owner of a particular itunes feed.
  244. </p>
  245. <div id="footer">
  246. Build version go1.6.<br>
  247. Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
  248. the content of this page is licensed under the
  249. Creative Commons Attribution 3.0 License,
  250. and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
  251. <a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
  252. <a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
  253. </div>
  254. </div><!-- .container -->
  255. </div><!-- #page -->
  256. <!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
  257. <script type="text/javascript" src="../../../../../lib/godoc/jquery.js"></script>
  258. <script type="text/javascript" src="../../../../../lib/godoc/jquery.treeview.js"></script>
  259. <script type="text/javascript" src="../../../../../lib/godoc/jquery.treeview.edit.js"></script>
  260. <script type="text/javascript" src="../../../../../lib/godoc/godocs.js"></script>
  261. </body>
  262. </html>