Redesign application to use tview
This commit is contained in:
parent
f14ed81d81
commit
1bbb015a29
5 changed files with 140 additions and 149 deletions
60
Main.go
60
Main.go
|
@ -1,11 +1,10 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"os"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gdamore/tcell/v2"
|
"github.com/gdamore/tcell/v2"
|
||||||
|
"github.com/rivo/tview"
|
||||||
|
|
||||||
"git.bonsai.cool/kayprish/ck/drw"
|
"git.bonsai.cool/kayprish/ck/drw"
|
||||||
"git.bonsai.cool/kayprish/ck/util"
|
"git.bonsai.cool/kayprish/ck/util"
|
||||||
|
@ -14,51 +13,22 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
util.Today = time.Now()
|
util.Today = time.Now()
|
||||||
util.SelTime = util.Today
|
util.SelTime = util.Today
|
||||||
var err error
|
|
||||||
drw.Wall, err = tcell.NewScreen()
|
|
||||||
if err != nil {
|
|
||||||
log.Fatalf("%+v", err)
|
|
||||||
}
|
|
||||||
if err := drw.Wall.Init(); err != nil {
|
|
||||||
log.Fatalf("%+v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
drw.Wall.SetStyle(drw.DefStyle)
|
box := tview.NewBox().
|
||||||
drw.Wall.Clear()
|
SetBorder(true).
|
||||||
drw.DrawWall()
|
SetTitle("Зидни Календар").
|
||||||
|
SetDrawFunc(drw.DrawWall).
|
||||||
|
SetInputCapture(drw.WallInputCapture)
|
||||||
|
|
||||||
quit := func() {
|
app := tview.NewApplication()
|
||||||
drw.Wall.Fini()
|
app.SetRoot(box, true).
|
||||||
os.Exit(0)
|
SetInputCapture(func(ev *tcell.EventKey) *tcell.EventKey {
|
||||||
}
|
if ev.Key() == tcell.KeyEscape || ev.Rune() == 'Q' || ev.Rune() == 'q' {
|
||||||
for {
|
app.Stop()
|
||||||
// Update screen
|
|
||||||
drw.Wall.Show()
|
|
||||||
|
|
||||||
// Poll event
|
|
||||||
ev := drw.Wall.PollEvent()
|
|
||||||
|
|
||||||
// Process event
|
|
||||||
switch ev := ev.(type) {
|
|
||||||
case *tcell.EventResize:
|
|
||||||
case *tcell.EventKey:
|
|
||||||
if ev.Key() == tcell.KeyEscape || ev.Key() == tcell.KeyCtrlC ||
|
|
||||||
ev.Rune() == 'Q' || ev.Rune() == 'q' {
|
|
||||||
quit()
|
|
||||||
}
|
}
|
||||||
switch ev.Rune() {
|
return ev
|
||||||
case 'h':
|
})
|
||||||
drw.MoveLeft()
|
if err := app.Run(); err != nil {
|
||||||
case 'j':
|
panic(err)
|
||||||
drw.MoveDown()
|
|
||||||
case 'k':
|
|
||||||
drw.MoveUp()
|
|
||||||
case 'l':
|
|
||||||
drw.MoveRight()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
drw.DrawWall()
|
|
||||||
drw.Wall.Sync()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
63
drw/drw.go
63
drw/drw.go
|
@ -1,71 +1,8 @@
|
||||||
package drw
|
package drw
|
||||||
|
|
||||||
import (
|
|
||||||
"unicode/utf8"
|
|
||||||
|
|
||||||
"github.com/gdamore/tcell/v2"
|
|
||||||
|
|
||||||
"git.bonsai.cool/kayprish/ck/util"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
months = [...]string{"", "Јануар", "Фебруар", "Март", "Април", "Мај", "Јун",
|
months = [...]string{"", "Јануар", "Фебруар", "Март", "Април", "Мај", "Јун",
|
||||||
"Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"}
|
"Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"}
|
||||||
weekdays = [...]string{"Недеља", "Понедељак", "Уторак", "Среда", "Четвртак",
|
weekdays = [...]string{"Недеља", "Понедељак", "Уторак", "Среда", "Четвртак",
|
||||||
"Петак", "Субота"}
|
"Петак", "Субота"}
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
DefStyle tcell.Style = tcell.StyleDefault.
|
|
||||||
Background(tcell.ColorReset).
|
|
||||||
Foreground(tcell.ColorReset)
|
|
||||||
TodayStyle tcell.Style = tcell.StyleDefault.
|
|
||||||
Background(tcell.ColorReset).
|
|
||||||
Foreground(tcell.GetColor("blue")).
|
|
||||||
Bold(true).
|
|
||||||
Reverse(true)
|
|
||||||
SelStyle tcell.Style = tcell.StyleDefault.
|
|
||||||
Background(tcell.ColorReset).
|
|
||||||
Foreground(tcell.GetColor("green")).
|
|
||||||
Bold(true)
|
|
||||||
HolyStyle tcell.Style = tcell.StyleDefault.
|
|
||||||
Background(tcell.ColorReset).
|
|
||||||
Foreground(tcell.GetColor("red")).
|
|
||||||
Bold(true)
|
|
||||||
)
|
|
||||||
|
|
||||||
func centeredText(s string, x, y, width int, scr tcell.Screen, style tcell.Style) {
|
|
||||||
start := x + util.Max((width-utf8.RuneCountInString(s))/2, 0)
|
|
||||||
i := 0
|
|
||||||
for ; x+i < start; i++ {
|
|
||||||
scr.SetContent(x+i, y, ' ', nil, style)
|
|
||||||
}
|
|
||||||
for _, char := range s {
|
|
||||||
if i >= width {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
scr.SetContent(x+i, y, char, nil, style)
|
|
||||||
i++
|
|
||||||
}
|
|
||||||
for ; x+i < start; i++ {
|
|
||||||
scr.SetContent(x+i, y, ' ', nil, style)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func wrappedText(s string, scr tcell.Screen, style tcell.Style) {
|
|
||||||
x := 0
|
|
||||||
y := 0
|
|
||||||
w, h := scr.Size()
|
|
||||||
for _, char := range s {
|
|
||||||
if x >= w {
|
|
||||||
if y >= h {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
x = 0
|
|
||||||
y++
|
|
||||||
}
|
|
||||||
scr.SetContent(x, y, char, nil, style)
|
|
||||||
x++
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
55
drw/wall.go
55
drw/wall.go
|
@ -5,6 +5,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gdamore/tcell/v2"
|
"github.com/gdamore/tcell/v2"
|
||||||
|
"github.com/rivo/tview"
|
||||||
|
|
||||||
"git.bonsai.cool/kayprish/ck/util"
|
"git.bonsai.cool/kayprish/ck/util"
|
||||||
)
|
)
|
||||||
|
@ -22,8 +23,6 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Wall tcell.Screen
|
|
||||||
|
|
||||||
monthsWide int
|
monthsWide int
|
||||||
monthsHigh int
|
monthsHigh int
|
||||||
monthsDrawn int
|
monthsDrawn int
|
||||||
|
@ -136,41 +135,44 @@ func MoveLeft() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func drawMonth(m time.Month, x, y int) {
|
func drawMonth(screen tcell.Screen, m time.Month, x, y int) {
|
||||||
centeredText(months[m], x, y, maxMonthWidth, Wall, DefStyle)
|
tview.Print(screen, months[m], x, y, maxMonthWidth, tview.AlignCenter, tcell.ColorWhite)
|
||||||
|
|
||||||
for i := 1; i <= 7; i++ {
|
for i := 1; i <= 7; i++ {
|
||||||
centeredText(weekdays[i%7], x+(i-1)*(dayWidth+smallGap), y+1, dayWidth, Wall, DefStyle)
|
tview.Print(screen, weekdays[i%7], x+(i-1)*(dayWidth+smallGap), y+1, dayWidth, tview.AlignLeft, tcell.ColorWhite)
|
||||||
}
|
}
|
||||||
|
|
||||||
dayNum := util.Date(util.SelTime.Year(), m+1, 0).Day()
|
dayNum := util.Date(util.SelTime.Year(), m+1, 0).Day()
|
||||||
for i := 1; i <= dayNum; i++ {
|
for i := 1; i <= dayNum; i++ {
|
||||||
weekday := int(util.Date(util.SelTime.Year(), m, i).Weekday())
|
weekday := int(util.Date(util.SelTime.Year(), m, i).Weekday())
|
||||||
style := DefStyle
|
dayText := strconv.Itoa(i)
|
||||||
if util.Today.Day() == i && util.Today.Month() == m {
|
if util.Today.Day() == i && util.Today.Month() == m {
|
||||||
style = TodayStyle
|
dayText = "[blue]" + dayText
|
||||||
} else if util.SelTime.Day() == i && util.SelTime.Month() == m {
|
} else if util.SelTime.Day() == i && util.SelTime.Month() == m {
|
||||||
style = SelStyle
|
dayText = "[green]" + dayText
|
||||||
}
|
}
|
||||||
centeredText(
|
tview.Print(
|
||||||
strconv.Itoa(i),
|
screen,
|
||||||
|
dayText,
|
||||||
x+((weekday-1+7)%7)*(dayWidth+smallGap),
|
x+((weekday-1+7)%7)*(dayWidth+smallGap),
|
||||||
y+2,
|
y+2,
|
||||||
2,
|
2,
|
||||||
Wall,
|
tview.AlignRight,
|
||||||
style)
|
tcell.ColorWhite)
|
||||||
if weekday == 0 {
|
if weekday == 0 {
|
||||||
y++
|
y++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DrawWall() {
|
func DrawWall(screen tcell.Screen, x int, y int, w int, h int) (int, int, int, int) {
|
||||||
Wall.Clear()
|
x += 1
|
||||||
w, h := Wall.Size()
|
y += 1
|
||||||
|
w -= 2
|
||||||
|
h -= 2 // We'll do calculations based on the inside of the box
|
||||||
if w < maxMonthWidth+2*smallGap || h < maxMonthHeight+2*smallGap+titleHeight {
|
if w < maxMonthWidth+2*smallGap || h < maxMonthHeight+2*smallGap+titleHeight {
|
||||||
wrappedText("Екран је премали за календар.", Wall, DefStyle) // The screen is too small for the calender
|
tview.Print(screen, "Екран је премали за календар.", x, y, w, tview.AlignCenter, tcell.ColorRed) // The screen is too small for the calender
|
||||||
return
|
return 0, 0, 0, 0
|
||||||
}
|
}
|
||||||
monthsWide = (w - 2*smallGap + largeGap) / (maxMonthWidth + largeGap)
|
monthsWide = (w - 2*smallGap + largeGap) / (maxMonthWidth + largeGap)
|
||||||
monthsHigh = (h - smallGap - titleHeight) / (maxMonthHeight + smallGap)
|
monthsHigh = (h - smallGap - titleHeight) / (maxMonthHeight + smallGap)
|
||||||
|
@ -182,11 +184,26 @@ func DrawWall() {
|
||||||
centerVert := (w - monthsWide*maxMonthWidth - (monthsWide-1)*largeGap) / 2
|
centerVert := (w - monthsWide*maxMonthWidth - (monthsWide-1)*largeGap) / 2
|
||||||
for i, m := 0, startingMonth; i < monthsHigh; i++ {
|
for i, m := 0, startingMonth; i < monthsHigh; i++ {
|
||||||
for j := 0; j < monthsWide; j++ {
|
for j := 0; j < monthsWide; j++ {
|
||||||
drawMonth(m, centerVert+j*(maxMonthWidth+largeGap), titleHeight+smallGap+i*(maxMonthHeight+smallGap))
|
drawMonth(screen, m, x+centerVert+j*(maxMonthWidth+largeGap), y+titleHeight+smallGap+i*(maxMonthHeight+smallGap))
|
||||||
if m >= endingMonth {
|
if m >= endingMonth {
|
||||||
return
|
return 0, 0, 0, 0
|
||||||
}
|
}
|
||||||
m++
|
m++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0, 0, 0, 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func WallInputCapture(ev *tcell.EventKey) *tcell.EventKey {
|
||||||
|
switch ev.Rune() {
|
||||||
|
case 'h':
|
||||||
|
MoveLeft()
|
||||||
|
case 'j':
|
||||||
|
MoveDown()
|
||||||
|
case 'k':
|
||||||
|
MoveUp()
|
||||||
|
case 'l':
|
||||||
|
MoveRight()
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
19
go.mod
19
go.mod
|
@ -2,14 +2,17 @@ module git.bonsai.cool/kayprish/ck
|
||||||
|
|
||||||
go 1.22
|
go 1.22
|
||||||
|
|
||||||
require github.com/gdamore/tcell/v2 v2.3.11
|
require (
|
||||||
|
github.com/gdamore/tcell/v2 v2.8.1
|
||||||
|
github.com/rivo/tview v0.0.0-20250625164341-a4a78f1e05cb
|
||||||
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gdamore/encoding v1.0.0 // indirect
|
github.com/gdamore/encoding v1.0.1 // indirect
|
||||||
github.com/lucasb-eyer/go-colorful v1.0.3 // indirect
|
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
||||||
github.com/mattn/go-runewidth v0.0.10 // indirect
|
github.com/mattn/go-runewidth v0.0.16 // indirect
|
||||||
github.com/rivo/uniseg v0.1.0 // indirect
|
github.com/rivo/uniseg v0.4.7 // indirect
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 // indirect
|
golang.org/x/sys v0.29.0 // indirect
|
||||||
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf // indirect
|
golang.org/x/term v0.28.0 // indirect
|
||||||
golang.org/x/text v0.3.0 // indirect
|
golang.org/x/text v0.21.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
92
go.sum
92
go.sum
|
@ -1,16 +1,80 @@
|
||||||
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
|
github.com/gdamore/encoding v1.0.1 h1:YzKZckdBL6jVt2Gc+5p82qhrGiqMdG/eNs6Wy0u3Uhw=
|
||||||
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
|
github.com/gdamore/encoding v1.0.1/go.mod h1:0Z0cMFinngz9kS1QfMjCP8TY7em3bZYeeklsSDPivEo=
|
||||||
github.com/gdamore/tcell/v2 v2.3.11 h1:ECO6WqHGbKZ3HrSL7bG/zArMCmLaNr5vcjjMVnLHpzc=
|
github.com/gdamore/tcell/v2 v2.8.1 h1:KPNxyqclpWpWQlPLx6Xui1pMk8S+7+R37h3g07997NU=
|
||||||
github.com/gdamore/tcell/v2 v2.3.11/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
|
github.com/gdamore/tcell/v2 v2.8.1/go.mod h1:bj8ori1BG3OYMjmb3IklZVWfZUJ1UBQt9JXrOCOhGWw=
|
||||||
github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=
|
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||||
github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
|
||||||
github.com/mattn/go-runewidth v0.0.10 h1:CoZ3S2P7pvtP45xOtBw+/mDL2z0RKI576gSkzRRpdGg=
|
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||||
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
|
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
|
||||||
github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY=
|
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||||
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
github.com/rivo/tview v0.0.0-20250625164341-a4a78f1e05cb h1:n7UJ8X9UnrTZBYXnd1kAIBc067SWyuPIrsocjketYW8=
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
|
github.com/rivo/tview v0.0.0-20250625164341-a4a78f1e05cb/go.mod h1:cSfIYfhpSGCjp3r/ECJb+GKS7cGJnqV8vfjQPwoXyfY=
|
||||||
|
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||||
|
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||||
|
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||||
|
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||||
|
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||||
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
|
golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
|
||||||
|
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
|
||||||
|
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
|
||||||
|
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||||
|
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||||
|
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||||
|
golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||||
|
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||||
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
|
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||||
|
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||||
|
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
|
||||||
|
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
|
||||||
|
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
|
||||||
|
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
|
||||||
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||||
|
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||||
|
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||||
|
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||||
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf h1:MZ2shdL+ZM/XzY3ZGOnh4Nlpnxz5GSOhOmtHo3iPU6M=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
|
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
|
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
|
||||||
|
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
|
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
|
||||||
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
|
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||||
|
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||||
|
golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
|
||||||
|
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
|
||||||
|
golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
|
||||||
|
golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg=
|
||||||
|
golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||||
|
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||||
|
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||||
|
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||||
|
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||||
|
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||||
|
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
|
||||||
|
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
|
||||||
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||||
|
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||||
|
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
|
||||||
|
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
|
||||||
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
|
Loading…
Add table
Reference in a new issue