summaryrefslogtreecommitdiff
path: root/new.go
blob: 31420112534928b7c2feea0043588d91c43f3d5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")
	rs.ready = true
	return rs
}