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

mlange-42 / modo / 12737935283

12 Jan 2025 11:14PM CUT coverage: 24.557%. Remained the same
12737935283

Pull #26

github

web-flow
Merge fdc77f32e into ee3165c19
Pull Request #26: Add CI tests on stable and nightly

97 of 395 relevant lines covered (24.56%)

1.28 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
type Config struct {
22
        Format          Format
23
        CaseInsensitive bool
24
}
25

26
func GetFormatter(f Format) Formatter {
×
27
        return formatters[f]
×
28
}
×
29

30
type Formatter interface {
31
        WriteAuxiliary(p *document.Package, dir string, t *template.Template) error
32
}
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