std_readline

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Doc = types.StdlibDoc{
	Name:        "readline",
	Description: "Read text from standard input.",
}
View Source
var Index = map[string]Value{
	"F/read": &Func{Executor: func(ctx *FuncContext) *Return {
		r := bufio.NewReader(ctx.Interp.Stdin())
		line, err := r.ReadString('\n')

		if err != nil {
			ctx.Interp.Throw(err.Error())
		}

		return NewReturn(NewString(line[:len(line)-1]))
	}},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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