package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: May 3, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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]))
}},
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.