(g *Globals)
| 7 | } |
| 8 | |
| 9 | func (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 | |
| 22 | type Printer interface { |
| 23 | Run(g *Globals) *Stream |
no test coverage detected