MCPcopy
hub / github.com/davyxu/tabtoy / Start

Method Start

v2/printer/printer.go:9–20  ·  view source on GitHub ↗
(g *Globals)

Source from the content-addressed store, hash-verified

7}
8
9func (self *PrinterContext) Start(g *Globals) bool {
10
11 log.Infof("[%s] %s\n", self.name, self.outFile)
12
13 bf := self.p.Run(g)
14
15 if bf == nil {
16 return false
17 }
18
19 return bf.WriteFile(self.outFile) == nil
20}
21
22type Printer interface {
23 Run(g *Globals) *Stream

Callers 3

mainFunction · 0.80
PrintMethod · 0.80
newStructParserFunction · 0.80

Calls 2

WriteFileMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected