file

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileMatch

func FileMatch(fx fs.FS, path string) (string, string, error)

FileMatch attempts to find a file with the same base name as path, but possibly with a different supported extension. It is intended to support "virtual" filenames that auto-convert from the format of the underlying real file.

Returns the real filename and the requested output format, or ("", "", error).

Types

type File

type File struct {
	ID    string
	Child *File
	Path  string
	Docs  []*document.Document
}

func Load

func Load(fsys *fsys.FS, path string, child *File) (*File, error)

func LoadAndParents

func LoadAndParents(fsys *fsys.FS, path string, child *File) ([]*File, error)

func (*File) String

func (f *File) String() string

Jump to

Keyboard shortcuts

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