<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-05-12 14:25:32 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-05-12 14:25:32 +0100
commit3c34366bdd5d817a184d6b1c901d03a16b6faa4b (patch)
tree0a084781caf7f062b52d8c0a7481e87afb7d5caa /main
parent551613765c9e60e2221ac920d2756b949e68f373 (diff)
downloadstred-go-3c34366bdd5d817a184d6b1c901d03a16b6faa4b.tar
Adds the json_array IO format
Diffstat (limited to 'main')
-rw-r--r--main/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main.go b/main/main.go
index 668253d..a506954 100644
--- a/main/main.go
+++ b/main/main.go
@@ -4,7 +4,7 @@ import (
"os"
"bufio"
"main/walk"
- "main/json_tokens"
+ "main/json_array"
)
type Program []Command
@@ -45,8 +45,8 @@ func main() {
stdout := bufio.NewWriter(os.Stdout)
state := ProgramState {
- in: json_tokens.NewJSONIn(stdin),
- out: json_tokens.NewJSONOut(stdout),
+ in: json_array.NewJSONArrayReader(stdin),
+ out: json_array.NewJSONArrayWriter(stdout),
program: program,
}