func (p *Phracked) load() {
	defer p.wg.Done()
	clearStatus()
	updateTitle("Phrack Issue #" + p.issue)
	go func() {
		p.fetchIssue()
		p.writeToFile()
		p.unpack()
		p.buildUI()
		p.status <- "done"
	}()

	for {
		select {
		case status := <-p.status:
			if status == "done" {
				return
			}
			g.Execute(func(g *gocui.Gui) error {
				updateStatus(status)
				return nil
			})
		case <-time.After(1000 * time.Millisecond):
			g.Execute(func(g *gocui.Gui) error {
				updateStatus(".")
				return nil
			})
		}
	}
}
/**
 * Completely loads and processes an issue.
 */
Completely loads and processes an issue.
/ ** * Completely loads and processes an issue . * /
func (p *Phracked) load() {
	defer p.wg.Done()
	clearStatus()
	updateTitle("Phrack Issue #" + p.issue)
	go func() {
		p.fetchIssue()
		p.writeToFile()
		p.unpack()
		p.buildUI()
		p.status <- "done"
	}()
	for {
		select {
		case status := <-p.status:
			if status == "done" {
				return
			}
			g.Execute(func(g *gocui.Gui) error {
				updateStatus(status)
				return nil
			})
		case <-time.After(1000 * time.Millisecond):
			g.Execute(func(g *gocui.Gui) error {
				updateStatus(".")
				return nil
			})
		}
	}
}
func ( p * Phracked ) load ( ) { defer p . wg . Done ( ) clearStatus ( ) updateTitle ( " " + p . issue ) go func ( ) { p . fetchIssue ( ) p . writeToFile ( ) p . unpack ( ) p . buildUI ( ) p . status <- " " } ( ) for { select { case status := <- p . status : if status == " " { return } g . Execute ( func ( g * gocui . Gui ) error { updateStatus ( status ) return nil } ) case <- time . After ( 1000 * time . Millisecond ) : g . Execute ( func ( g * gocui . Gui ) error { updateStatus ( " " ) return nil } ) } } }
Completely loads and processes an issue.
Completely loads and processes an issue .