site

package
v0.0.0-...-a2331ce Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WroteChar = iota
	WroteSpace
)
View Source
const DefaultWeight = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderInfo

type OrderInfo struct {
	DefaultWeight float64  `yaml:"default"`
	OrderOrigin   int      `yaml:"orderMin"`
	Order         []string `yaml:"order"`
}

type PageEntry

type PageEntry struct {
	Id         uint64
	Path       string
	Extension  string
	Url        string
	Label      string
	ListWeight float64
	Modified   time.Time
}

func LoadPageEntry

func LoadPageEntry(path string) (*PageEntry, error)

type PageIndex

type PageIndex struct {
	PageLookup    map[string]*PageEntry
	Pages         []*PageEntry
	WeightLookup  map[string]float64
	DefaultWeight float64
	Title         string
}

func BuildIndex

func BuildIndex() (*PageIndex, error)

func Index

func Index() *PageIndex

func ReIndex

func ReIndex() *PageIndex

Jump to

Keyboard shortcuts

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