graphs

package
v0.0.0-...-badddc8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entries

func Entries() map[string]Entry

func ReadEntries

func ReadEntries(fsys fs.FS, glob string) (map[string]Entry, error)

ReadEntries reads a collection of entries from an FS.

Types

type Entry

type Entry struct {
	// Graph answers the graph for this entry.
	Graph StringFunc
}

type StringFunc

type StringFunc func() (string, error)

StringFunc answers a string or an error.

func NewReadFileFunc

func NewReadFileFunc(path string, fsys fs.FS) StringFunc

NewReadFileFunc answers a StringFunc based on reading a file from a filesystem.

Jump to

Keyboard shortcuts

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