v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-20 09:30:21 -07:00

refactor: replace int with int8 in UICycle

This commit is contained in:
eeeXun 2023-03-23 11:55:37 +08:00
parent 9f7c7b71fa
commit 854b569750

View File

@ -6,8 +6,8 @@ import (
type UICycle struct { type UICycle struct {
widget []tview.Primitive widget []tview.Primitive
index int index int8
len int len int8
} }
func NewUICycle(widgets ...tview.Primitive) *UICycle { func NewUICycle(widgets ...tview.Primitive) *UICycle {
@ -20,7 +20,7 @@ func NewUICycle(widgets ...tview.Primitive) *UICycle {
return &UICycle{ return &UICycle{
widget: w, widget: w,
index: 0, index: 0,
len: len(w), len: int8(len(w)),
} }
} }