docs

package
v0.0.0-...-bb4fd4e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc struct {
	Refer   string            `json:"refer"`
	Title   string            `json:"title"`
	Link    string            `json:"link"`
	Href    string            `json:"href"`
	Text    []string          `json:"text"`
	Support map[string]string `json:"support"`
	Subs    []*Doc            `json:"subs"`
}

func NewDoc

func NewDoc() (doc *Doc)

func (*Doc) Sprint

func (doc *Doc) Sprint() (s string)

type Docs

type Docs map[string]*Doc

func LoadDocuments

func LoadDocuments(path string) (documents Docs, err error)

func NewDocs

func NewDocs() (docs Docs)

func (Docs) Find

func (docs Docs) Find(key string) (doc *Doc, err error)

func (Docs) ReadFile

func (docs Docs) ReadFile(fileName string) (err error)

func (Docs) Sprint

func (docs Docs) Sprint() (s string)

func (Docs) WriteFile

func (docs Docs) WriteFile(fileName string) (err error)

Jump to

Keyboard shortcuts

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