aboutsummaryrefslogtreecommitdiff
path: root/go/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'go/src/core')
-rw-r--r--go/src/core/core.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/src/core/core.go b/go/src/core/core.go
index b3961e1..cd63930 100644
--- a/go/src/core/core.go
+++ b/go/src/core/core.go
@@ -10,6 +10,7 @@ import (
. "types"
"reader"
"printer"
+ "readline"
)
// Errors/Exceptions
@@ -150,6 +151,8 @@ var NS = map[string]MalType{
"read-string": func(a []MalType) (MalType, error) {
return reader.Read_str(a[0].(string)) },
"slurp": slurp,
+ "readline": func(a []MalType) (MalType, error) {
+ return readline.Readline(a[0].(string)) },
"<": func(a []MalType) (MalType, error) {
return a[0].(int) < a[1].(int), nil },