Màj des dépendances

This commit is contained in:
Benjamin VAUDOUR 2024-03-02 14:50:01 +01:00
parent d39b4e1433
commit 35c56196d4
3 changed files with 9 additions and 8 deletions

4
go.mod
View File

@ -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
)

8
go.sum
View File

@ -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=

View File

@ -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 {