plugin

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const UnwrapDepth = 3

Variables

View Source
var Uml2Ts tdl.Plugin = NewAggregate(
	fromPath{"uml2ts", 50},
)

Functions

func FirstAvailable

func FirstAvailable(target tdl.Target) (tdl.Plugin, error)

func FromPath

func FromPath(name string) tdl.Plugin

func Sorted

func Sorted[O Ordered](seq iter.Seq[O]) []O

func Unwrap

func Unwrap(plugin tdl.Plugin) []tdl.Plugin

func UnwrapAll

func UnwrapAll(plugins []tdl.Plugin) []tdl.Plugin

Types

type Aggregate

type Aggregate []tdl.Plugin

func NewAggregate

func NewAggregate(plugins ...tdl.Plugin) Aggregate

func (Aggregate) Generator

func (a Aggregate) Generator(t tdl.Target) (tdl.Generator, error)

Generator implements tdl.Plugin.

func (Aggregate) String

func (a Aggregate) String() string

String implements tdl.Plugin.

type Ordered

type Ordered interface {
	tdl.Plugin
	Order() int
}

func AsOrdered

func AsOrdered(plugin tdl.Plugin) Ordered

func WithPriority

func WithPriority(plugin tdl.Plugin, priority int) Ordered

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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