find

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPortals = errors.New("cannot find portals")

Functions

func Inject

func Inject[T target.Portal_](deps Deps[T]) target.Find[T]

func New

func New[T target.Portal_](
	cache *target.Cache[T],
	resolvePath target.Path,
	resolveFile target.File,
	resolveTarget target.Resolve[T],
	priority target.Priority,
	embed ...target.Source,
) target.Find[T]

Types

type Deps

type Deps[T target.Portal_] interface {
	TargetResolve() target.Resolve[T]
	TargetCache() *target.Cache[T]
	TargetFile() target.File
	Path() target.Path
	Embed() []target.Source
	Priority() target.Priority
}

Jump to

Keyboard shortcuts

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