package
Version:
v0.0.0-...-a989888
Opens a new window with list of versions in this module.
Published: Nov 28, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package decoder implements a simple decoder for wiki pages.
Decoder is an XML decoder tailored to the Wikipedia dataset.
New instanciates a new Decoder.
It fail if it cannot find the mediawiki and siteinfo elements from the dataset.
Err returns any error encountered by Next.
Next moves to the next element.
type Page struct {
ID int64 `xml:"-"`
UpdatedAt time.Time `xml:"revision>timestamp"`
Title string `xml:"title"`
Text string `xml:"revision>text"`
}
Page represents a page from Wikipedia.
Source Files
¶
Directories
¶
Package decoder implements a high performance decoder for wiki pages.
|
Package decoder implements a high performance decoder for wiki pages. |
Click to show internal directories.
Click to hide internal directories.