Màj des dépendances
This commit is contained in:
parent
d39b4e1433
commit
35c56196d4
4
go.mod
4
go.mod
@ -3,6 +3,6 @@ module gitea.zaclys.net/bvaudour/go-calc
|
|||||||
go 1.22.0
|
go 1.22.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gitea.zaclys.com/bvaudour/gob v0.0.0-20240225170301-974a160bfb8e // indirect
|
gitea.zaclys.com/bvaudour/gob v0.0.0-20240302132617-3307dec97ce9 // indirect
|
||||||
gitea.zaclys.com/bvaudour/readline v0.0.0-20240225134040-b1215d26587d // indirect
|
gitea.zaclys.com/bvaudour/greadline v0.0.0-20240302134443-c886b16df3ac // indirect
|
||||||
)
|
)
|
||||||
|
8
go.sum
8
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-20240302132617-3307dec97ce9 h1:rWwHju2jTBu/V7ALO9tYiNJOqqanEDEpfAtNUDGrImQ=
|
||||||
gitea.zaclys.com/bvaudour/gob v0.0.0-20240225170301-974a160bfb8e/go.mod h1:Gw6x0KNKoXv6AMtRkaI+iWM2enVzwHikUSskuEzWQz4=
|
gitea.zaclys.com/bvaudour/gob v0.0.0-20240302132617-3307dec97ce9/go.mod h1:Gw6x0KNKoXv6AMtRkaI+iWM2enVzwHikUSskuEzWQz4=
|
||||||
gitea.zaclys.com/bvaudour/readline v0.0.0-20240225134040-b1215d26587d h1:Xch3Agxkk/s8XHDv2QG2hb5O69nhuvlKQn7BedS+gSw=
|
gitea.zaclys.com/bvaudour/greadline v0.0.0-20240302134443-c886b16df3ac h1:oSCTQzv/Ge+qqApL1acNtfxIEGOSy6P1saU8nmeMl8g=
|
||||||
gitea.zaclys.com/bvaudour/readline v0.0.0-20240225134040-b1215d26587d/go.mod h1:XUeoO+H5R/sX02vWsvILkqpYM4WRWQWHfsNl0GoDKBs=
|
gitea.zaclys.com/bvaudour/greadline v0.0.0-20240302134443-c886b16df3ac/go.mod h1:1k+VEp0vbCz0+NAI6zxD4zmvRFbEWDncu/Z7TjKa8Xg=
|
||||||
|
5
main.go
5
main.go
@ -4,12 +4,13 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"gitea.zaclys.com/bvaudour/readline"
|
"gitea.zaclys.com/bvaudour/greadline"
|
||||||
"gitea.zaclys.net/bvaudour/go-calc/calc/cli"
|
"gitea.zaclys.net/bvaudour/go-calc/calc/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
calc, rl := cli.New(), readline.New()
|
calc, rl := cli.New(), greadline.New()
|
||||||
|
defer rl.Close()
|
||||||
for {
|
for {
|
||||||
result := rl.Prompt("> ")
|
result := rl.Prompt("> ")
|
||||||
if args, ok := result.Ok(); ok {
|
if args, ok := result.Ok(); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user