wikisp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.Config) data.Convertor

Types

type PageData

type PageData struct {
	ID              string
	Title           string
	ScientificName  string
	Authorship      string
	ParseQuality    wsparser.Quality // wsparser parse quality
	ParentTemplate  string
	Synonyms        []string
	VernacularNames map[string]string
}

type PageXML

type PageXML struct {
	Title    string   `xml:"title"`
	ID       int      `xml:"id"`
	Revision Revision `xml:"revision"`
}

type Revision

type Revision struct {
	Timestamp string      `xml:"timestamp"`
	Format    string      `xml:"format"`
	Text      TextElement `xml:"text"`
}

type Section

type Section struct {
	Header string
	Level  int
	Lines  []string
}

type TextElement

type TextElement struct {
	Content string `xml:",chardata"`
}

Directories

Path Synopsis
testgen command

Jump to

Keyboard shortcuts

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