workspace

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Folder

type Folder struct {
	RootURI string
	Config  *config.Config
	// contains filtered or unexported fields
}

func NewFolder

func NewFolder(rootURI string, cfg *config.Config) *Folder

func (*Folder) AddDoc

func (f *Folder) AddDoc(doc *document.Document)

func (*Folder) AllDocs

func (f *Folder) AllDocs() []*document.Document

func (*Folder) DocBySlug

func (f *Folder) DocBySlug(slug paths.Slug) *document.Document

func (*Folder) DocByURI

func (f *Folder) DocByURI(uri string) *document.Document

func (*Folder) DocCount

func (f *Folder) DocCount() int

func (*Folder) MapTexts

func (f *Folder) MapTexts() []string

func (*Folder) RemoveDoc

func (f *Folder) RemoveDoc(uri string)
func (f *Folder) ResolveLink(url string, sourceURI string) *document.Document

func (*Folder) RootPath

func (f *Folder) RootPath() string

func (*Folder) ScanFiles

func (f *Folder) ScanFiles() error

type Workspace

type Workspace struct {
	// contains filtered or unexported fields
}

func New

func New() *Workspace

func (*Workspace) AddFolder

func (ws *Workspace) AddFolder(f *Folder)

func (*Workspace) FindDoc

func (ws *Workspace) FindDoc(uri string) (*document.Document, *Folder)

func (*Workspace) FolderByURI

func (ws *Workspace) FolderByURI(rootURI string) *Folder

func (*Workspace) FolderForURI

func (ws *Workspace) FolderForURI(uri string) *Folder

func (*Workspace) Folders

func (ws *Workspace) Folders() []*Folder

func (*Workspace) RemoveFolder

func (ws *Workspace) RemoveFolder(rootURI string)

Jump to

Keyboard shortcuts

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