parent
0fc60bc54f
commit
95922f3ce4
|
@ -0,0 +1,9 @@
|
|||
pipeline:
|
||||
compliance:
|
||||
image: golang/1.17
|
||||
commands:
|
||||
- go test -race ./...
|
||||
- go vet ./...
|
||||
- go build go.jolheiser.com/emdbed/cmd/emdbed
|
||||
when:
|
||||
event: pull_request
|
|
@ -36,7 +36,7 @@ func Convert(dir string, file io.Reader) (string, error) {
|
|||
starts := start.FindAllStringSubmatchIndex(contents, -1)
|
||||
ends := end.FindAllStringIndex(contents, -1)
|
||||
if len(starts) != len(ends) {
|
||||
return "", fmt.Errorf("starts (%d) != ends (%d)", len(starts), len(ends))
|
||||
return "", fmt.Errorf("start selectors (%d) != end selectors (%d)", len(starts), len(ends))
|
||||
}
|
||||
var last int
|
||||
for idx, start := range starts {
|
||||
|
|
|
@ -22,6 +22,7 @@ func Example() {
|
|||
//func main() {
|
||||
// fmt.Println("Hello, world!")
|
||||
//}
|
||||
//
|
||||
// ```
|
||||
//<!-- /emdbed -->
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue