From 35c56196d47cdcaa015a6573ad1c2e850361ef8f Mon Sep 17 00:00:00 2001 From: Benjamin VAUDOUR Date: Sat, 2 Mar 2024 14:50:01 +0100 Subject: [PATCH] =?UTF-8?q?M=C3=A0j=20des=20d=C3=A9pendances?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 4 ++-- go.sum | 8 ++++---- main.go | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index eab725d..f5c19a5 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module gitea.zaclys.net/bvaudour/go-calc go 1.22.0 require ( - gitea.zaclys.com/bvaudour/gob v0.0.0-20240225170301-974a160bfb8e // indirect - gitea.zaclys.com/bvaudour/readline v0.0.0-20240225134040-b1215d26587d // indirect + gitea.zaclys.com/bvaudour/gob v0.0.0-20240302132617-3307dec97ce9 // indirect + gitea.zaclys.com/bvaudour/greadline v0.0.0-20240302134443-c886b16df3ac // indirect ) diff --git a/go.sum b/go.sum index ce4d77d..6da8cfd 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -gitea.zaclys.com/bvaudour/gob v0.0.0-20240225170301-974a160bfb8e h1:rQHqT+qoEmu0wrH9QWSD4sDeKw8vEtlPvoW0/fWsyVM= -gitea.zaclys.com/bvaudour/gob v0.0.0-20240225170301-974a160bfb8e/go.mod h1:Gw6x0KNKoXv6AMtRkaI+iWM2enVzwHikUSskuEzWQz4= -gitea.zaclys.com/bvaudour/readline v0.0.0-20240225134040-b1215d26587d h1:Xch3Agxkk/s8XHDv2QG2hb5O69nhuvlKQn7BedS+gSw= -gitea.zaclys.com/bvaudour/readline v0.0.0-20240225134040-b1215d26587d/go.mod h1:XUeoO+H5R/sX02vWsvILkqpYM4WRWQWHfsNl0GoDKBs= +gitea.zaclys.com/bvaudour/gob v0.0.0-20240302132617-3307dec97ce9 h1:rWwHju2jTBu/V7ALO9tYiNJOqqanEDEpfAtNUDGrImQ= +gitea.zaclys.com/bvaudour/gob v0.0.0-20240302132617-3307dec97ce9/go.mod h1:Gw6x0KNKoXv6AMtRkaI+iWM2enVzwHikUSskuEzWQz4= +gitea.zaclys.com/bvaudour/greadline v0.0.0-20240302134443-c886b16df3ac h1:oSCTQzv/Ge+qqApL1acNtfxIEGOSy6P1saU8nmeMl8g= +gitea.zaclys.com/bvaudour/greadline v0.0.0-20240302134443-c886b16df3ac/go.mod h1:1k+VEp0vbCz0+NAI6zxD4zmvRFbEWDncu/Z7TjKa8Xg= diff --git a/main.go b/main.go index 391379b..7ea2a88 100644 --- a/main.go +++ b/main.go @@ -4,12 +4,13 @@ import ( "fmt" "os" - "gitea.zaclys.com/bvaudour/readline" + "gitea.zaclys.com/bvaudour/greadline" "gitea.zaclys.net/bvaudour/go-calc/calc/cli" ) func main() { - calc, rl := cli.New(), readline.New() + calc, rl := cli.New(), greadline.New() + defer rl.Close() for { result := rl.Prompt("> ") if args, ok := result.Ok(); ok {