fn

package
v0.0.0-...-c96734c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-2-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FNode

type FNode struct {
	Root   string
	RootFs fs.FS

	Path     string
	Revision string
	Type     string
	Data     *ogdl.Graph
	Document *document.Document
	Content  []byte
	Params   map[string]string
	// contains filtered or unexported fields
}

func New

func New(root string) *FNode

Create and emtpy FNode with the root set to the given system path.

func NewFS

func NewFS(fs fs.FS) *FNode

Create an empty FNode with the root set to a io.FS filesystem. This is used for example with go.embed file systems.

func (*FNode) Get

func (fn *FNode) Get(path string) error

Get returns an FNode (it updates its receiving object).

What should fn contain to start with ?????

Revision rules - 1 rev per path - @ at the end means log() - @rev means a specific revision (at any point in the path that has revisions)

func (*FNode) GetRaw

func (fn *FNode) GetRaw(path string) error

func (*FNode) Put

func (fn *FNode) Put(path string, content []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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