repostatus/new.go

20 lines
340 B
Go
Raw Normal View History

2024-01-09 15:34:53 -06:00
package repostatus
import (
"go.wit.com/gui/gui"
"go.wit.com/gui/gadgets"
)
func New(p *gui.Node, path string) *RepoStatus {
rs := &RepoStatus {
hidden: true,
ready: false,
parent: p,
repopath: path,
}
rs.tags = make(map[string]string)
rs.window = gadgets.NewBasicWindow(p, "GO Repo Details")
2024-01-09 15:34:53 -06:00
rs.ready = true
return rs
2024-01-09 15:34:53 -06:00
}