Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PathTopic ¶
type PathTopic interface { Topic // Subtopic returns a subtopic in a given path Subtopic(path string) (Topic, error) }
PathTopic is a Topic that can be queried by a path
type Storage ¶
func NewFSStorage ¶
NewFSStorage return an implementation of storage that uses a directory in the filesystem
type Topic ¶
type Topic interface { // ID returns an un-localized name for the article ID() string // Locales returns all available locales Locales() []string // Name returns the localized Name Name(locale string) (string, error) // non-unique name // Data returns a rewinded io.Reader delivering the markdown code Data(locale string) (io.Reader, error) // link // Subtopics returns the subtopics of the topic Subtopics() []Topic // subtopics }
Topic depicts an article and its subtopics
Click to show internal directories.
Click to hide internal directories.