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

mlange-42 / modo / 13082841599

01 Feb 2025 12:06AM CUT coverage: 67.539% (-0.2%) from 67.728%
13082841599

Pull #174

github

web-flow
Merge b6adc7d79 into 3f0193523
Pull Request #174: Watch mode

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

1213 of 1796 relevant lines covered (67.54%)

28.05 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
        "fmt"
5

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

9
var formats = map[string]document.Formatter{
10
        "":       &Plain{},
11
        "plain":  &Plain{},
12
        "mdbook": &MdBook{},
13
        "hugo":   &Hugo{},
14
}
15

16
func GetFormatter(f string) (document.Formatter, error) {
×
17
        fm, ok := formats[f]
×
18
        if !ok {
×
19
                return nil, fmt.Errorf("unknown format '%s'. See flag --format", f)
×
20
        }
×
21
        return fm, nil
×
22
}
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