(format Format)
| 43 | } |
| 44 | |
| 45 | func (ctx *DiskUsageContext) startSubsection(format Format) (*template.Template, error) { |
| 46 | ctx.buffer = &bytes.Buffer{} |
| 47 | ctx.header = "" |
| 48 | ctx.Format = format |
| 49 | |
| 50 | return ctx.parseFormat() |
| 51 | } |
| 52 | |
| 53 | // NewDiskUsageFormat returns a format for rendering an DiskUsageContext |
| 54 | func NewDiskUsageFormat(source string, verbose bool) Format { |
no test coverage detected