basics

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Data []byte
}

func (Binary) Mime

func (Binary) Mime() string

func (Binary) Write

func (ba Binary) Write(w io.Writer) error

type BinaryNode

type BinaryNode = nodes.Struct[BinaryNodeData]

type BinaryNodeData

type BinaryNodeData struct {
	In nodes.Output[[]byte]
}

func (BinaryNodeData) Out added in v0.23.0

type IO

type IO struct {
	Reader io.Reader
}

func (IO) Mime

func (IO) Mime() string

func (IO) Write

func (ga IO) Write(w io.Writer) error

type IONode

type IONode = nodes.Struct[IONodeData]

type IONodeData

type IONodeData struct {
	In nodes.Output[io.Reader]
}

func (IONodeData) Out added in v0.23.0

type Image

type Image struct {
	Image image.Image
}

func (Image) Mime

func (im Image) Mime() string

func (Image) Write

func (ia Image) Write(w io.Writer) error

type ImageNode

type ImageNode = nodes.Struct[ImageNodeData]

type ImageNodeData

type ImageNodeData struct {
	In nodes.Output[image.Image]
}

func (ImageNodeData) Out added in v0.23.0

type Text

type Text struct {
	Data string
}

func (Text) Mime

func (Text) Mime() string

func (Text) Write

func (ta Text) Write(w io.Writer) error

type TextNode

type TextNode = nodes.Struct[TextNodeData]

type TextNodeData

type TextNodeData struct {
	In nodes.Output[string]
}

func (TextNodeData) Out added in v0.23.0

Jump to

Keyboard shortcuts

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