Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SamNet-dev/snix
/ nextTab
Function
nextTab
tui/app.go:238–245 ·
view source on GitHub ↗
(t tab)
Source
from the content-addressed store, hash-verified
236
}
237
238
func
nextTab(t tab) tab {
239
for
i, x :=
range
tabOrder {
240
if
x == t {
241
return
tabOrder[(i+1)%len(tabOrder)]
242
}
243
}
244
return
tabHome
245
}
246
247
func
prevTab(t tab) tab {
248
for
i, x :=
range
tabOrder {
Callers
1
Update
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected