da_text

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextInput

type TextInput interface {
	SetFilePath(filePath string)
	FilePath() string
	Spec() TextInputSpec
	Debug() interface{}
	Open(ctl app_control.Control) error

	// Read each line. If a func f returns an error, finish read text immediately and returns the error.
	EachLine(f func(line string) error) error

	// Returns entire text content.
	Content() ([]byte, error)
}

func NewTextInput

func NewTextInput(name string, recipe interface{}) TextInput

type TextInputSpec

type TextInputSpec interface {
	Name() string
	Desc() app_msg.Message
	Doc(ui app_ui.UI) *dc_recipe.DocTextInput
}

func NewInputSpec

func NewInputSpec(name string, recipe interface{}) TextInputSpec

Jump to

Keyboard shortcuts

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