<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/main.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-19 09:48:04 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-19 09:48:04 +0100
commitc6905e06ba73f47495ba86cebe1cb42f141f308d (patch)
tree20e81487ab79691437109a6ed54fc1ad174ded66 /subex/main.go
parent7b48ab9f51a14a540b36722e34b844d21622fcc7 (diff)
downloadstred-go-c6905e06ba73f47495ba86cebe1cb42f141f308d.tar
Adds casting strings to numbers in the sum operator
Diffstat (limited to 'subex/main.go')
-rw-r--r--subex/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/subex/main.go b/subex/main.go
index 593dbbd..2a5f5ad 100644
--- a/subex/main.go
+++ b/subex/main.go
@@ -118,7 +118,11 @@ func Main() {
return
}
- valueOut := walk.MemoryCompound(output)
+ valueOut, error := walk.MemoryCompound(output)
+ if error != nil {
+ fmt.Println(error.Error())
+ return
+ }
for _, value := range valueOut {
fmt.Println(value)
}