From 3c34366bdd5d817a184d6b1c901d03a16b6faa4b Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Fri, 12 May 2023 14:25:32 +0100 Subject: Adds the json_array IO format --- main/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main') 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, } -- cgit v1.2.3