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

mlange-42 / modo / 12759040435

14 Jan 2025 01:08AM CUT coverage: 34.065% (-0.7%) from 34.783%
12759040435

Pull #33

github

web-flow
Merge 13c24c5d4 into b2b3f2790
Pull Request #33: Add CSS to mdBook for line wrapping in code

2 of 18 new or added lines in 2 files covered. (11.11%)

1 existing line in 1 file now uncovered.

264 of 775 relevant lines covered (34.06%)

1.96 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