• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlange-42 / modo / 12729582532

12 Jan 2025 02:14AM CUT coverage: 12.644%. Remained the same
12729582532

Pull #19

github

web-flow
Merge e5dfae079 into 66b79d212
Pull Request #19: Navigation and top-level headings use inline code style

0 of 6 new or added lines in 1 file covered. (0.0%)

33 of 261 relevant lines covered (12.64%)

0.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/format/formats.go
1
package format
2

3
import (
4
        "text/template"
5

6
        "github.com/mlange-42/modo/document"
7
)
8

9
type Format uint8
10

11
const (
12
        Plain Format = iota
13
        MdBook
14
)
15

16
var formatters = []Formatter{
17
        &PlainFormatter{},
18
        &MdBookFormatter{},
19
}
20

21
func GetFormatter(f Format) Formatter {
×
22
        return formatters[f]
×
23
}
×
24

25
type Formatter interface {
26
        WriteAuxiliary(p *document.Package, dir string, t *template.Template) error
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc