diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 09:48:04 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 09:48:04 +0100 |
commit | c6905e06ba73f47495ba86cebe1cb42f141f308d (patch) | |
tree | 20e81487ab79691437109a6ed54fc1ad174ded66 /subex/main.go | |
parent | 7b48ab9f51a14a540b36722e34b844d21622fcc7 (diff) | |
download | stred-go-c6905e06ba73f47495ba86cebe1cb42f141f308d.tar |
Adds casting strings to numbers in the sum operator
Diffstat (limited to 'subex/main.go')
-rw-r--r-- | subex/main.go | 6 |
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) } |