aboutsummaryrefslogtreecommitdiff
path: root/go/src/printer/printer.go
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-10-06 22:27:28 -0500
committerJoel Martin <github@martintribe.org>2014-10-06 22:27:28 -0500
commitad95503cea8ca85e9188effa87681275283157bf (patch)
treef4e5919aeb2351f2ceb60fee4ab988324bfb5dd1 /go/src/printer/printer.go
parent17e1c5f9f4006399398e8bb7e219a79962ebf3f0 (diff)
downloadmal-ad95503cea8ca85e9188effa87681275283157bf.tar.gz
mal-ad95503cea8ca85e9188effa87681275283157bf.zip
go: add step6_file
Diffstat (limited to 'go/src/printer/printer.go')
-rw-r--r--go/src/printer/printer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/go/src/printer/printer.go b/go/src/printer/printer.go
index 5050c5a..887c749 100644
--- a/go/src/printer/printer.go
+++ b/go/src/printer/printer.go
@@ -49,6 +49,8 @@ func Pr_str(obj types.MalType, print_readably bool) string {
return "(fn* " +
Pr_str(tobj.Params, true) + " " +
Pr_str(tobj.Exp, true) + ")"
+ case func([]types.MalType)(types.MalType, error):
+ return fmt.Sprintf("<function %v>", obj)
default:
return fmt.Sprintf("%v", obj)
}