tagtree

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Asia         = "Asia"
	Africa       = "Africa"
	NorthAmerica = "North America"
	SouthAmerica = "South America"
	Antarctica   = "Antarctica"
	Europe       = "Europe"
	Oceania      = "Oceania"
)

Variables

View Source
var ErrOpenClose = errors.New("different number of open and close braces")

Functions

This section is empty.

Types

type Brace

type Brace struct {
	Type       BraceType
	Start, End int
}

type BraceType

type BraceType int
const (
	BraceOpen BraceType = iota
	BraceClose
)

type Node

type Node interface {
	String(title string) string
}

Node is a part of a referenced Category.

func Parse

func Parse(category string) Node

type NodeCentury

type NodeCentury struct {
	Value Node
	Dash  bool
}

func (*NodeCentury) String

func (n *NodeCentury) String(title string) string

type NodeContinent2Continental

type NodeContinent2Continental struct {
	Value Node
}

func (*NodeContinent2Continental) String

func (n *NodeContinent2Continental) String(title string) string

type NodeCountry2Continent

type NodeCountry2Continent struct {
	Value Node
}

func (*NodeCountry2Continent) String

func (n *NodeCountry2Continent) String(title string) string

type NodeCountry2Nationality

type NodeCountry2Nationality struct {
	Value Node
}

func (*NodeCountry2Nationality) String

func (n *NodeCountry2Nationality) String(title string) string

type NodeDecade

type NodeDecade struct {
	Value Node
}

func (*NodeDecade) String

func (n *NodeDecade) String(title string) string

type NodeError

type NodeError struct {
	Value error
}

func (*NodeError) String

func (n *NodeError) String(title string) string

type NodeExpression

type NodeExpression struct {
	Value Node
}

func (*NodeExpression) String

func (n *NodeExpression) String(title string) string

type NodeFirstWord

type NodeFirstWord struct {
	Value Node
}

func (*NodeFirstWord) String

func (n *NodeFirstWord) String(title string) string

type NodeLastWord

type NodeLastWord struct {
	Value Node
}

func (*NodeLastWord) String

func (n *NodeLastWord) String(title string) string

type NodeMonth

type NodeMonth struct {
	Value Node
}

func (*NodeMonth) String

func (n *NodeMonth) String(title string) string

type NodeMonthNumber

type NodeMonthNumber struct {
	Value Node
}

func (*NodeMonthNumber) String

func (n *NodeMonthNumber) String(title string) string

type NodeOrdinal

type NodeOrdinal struct {
	Value Node
}

func (*NodeOrdinal) String

func (n *NodeOrdinal) String(title string) string

type NodePageName

type NodePageName struct{}

func (*NodePageName) String

func (n *NodePageName) String(title string) string

type NodeParent

type NodeParent struct {
	Children []Node
}

A NodeParent is made of.

func (*NodeParent) String

func (n *NodeParent) String(title string) string

type NodeString

type NodeString struct {
	Value string
}

func (*NodeString) String

func (n *NodeString) String(title string) string

type NodeTitleCentury

type NodeTitleCentury struct{}

func (*NodeTitleCentury) String

func (n *NodeTitleCentury) String(title string) string

type NodeTitleCountry

type NodeTitleCountry struct{}

func (*NodeTitleCountry) String

func (n *NodeTitleCountry) String(title string) string

type NodeTitleDecade

type NodeTitleDecade struct{}

func (*NodeTitleDecade) String

func (n *NodeTitleDecade) String(title string) string

type NodeTitleMonth

type NodeTitleMonth struct{}

func (*NodeTitleMonth) String

func (n *NodeTitleMonth) String(title string) string

type NodeTitleYear

type NodeTitleYear struct{}

NodeTitleYear represents a category which programmatically refers to the year in the article's title.

func (*NodeTitleYear) String

func (n *NodeTitleYear) String(title string) string

type NodeTitleYearRange

type NodeTitleYearRange struct{}

NodeTitleYearRange represents a category which programmatically refers to a range of years in the article's title.

func (*NodeTitleYearRange) String

func (n *NodeTitleYearRange) String(title string) string

Jump to

Keyboard shortcuts

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