target

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("unsupported target")
View Source
var TypeScript typescript = "TypeScript"

Functions

func Choose added in v0.0.33

func Choose[T tdl.Plugin](target tdl.Target, available iter.Seq[tdl.Plugin]) (res T, err error)

func Generator added in v0.0.33

func Generator(
	ctx context.Context,
	target tdl.Target,
	available iter.Seq[tdl.Plugin],
) (tdl.Generator, error)

func NewTool added in v0.0.33

func NewTool(name string) tdl.Target

func Parse

func Parse(target string) (tdl.Target, error)

func Reject

func Reject(generator tdl.Generator, reason string) error

func Tool added in v0.0.33

func Tool(
	ctx context.Context,
	target tdl.Target,
	available iter.Seq[tdl.Plugin],
) (tdl.Tool, error)

func UnsupportedErr

func UnsupportedErr(target string) error

Types

type RejectionErr

type RejectionErr struct {
	Generator tdl.Generator
	Reason    string
}

func (RejectionErr) Error

func (e RejectionErr) Error() string

Jump to

Keyboard shortcuts

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