diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..eb43523 --- /dev/null +++ b/.woodpecker.yml @@ -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 \ No newline at end of file diff --git a/emdbed.go b/emdbed.go index aa350b0..844e254 100644 --- a/emdbed.go +++ b/emdbed.go @@ -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 { diff --git a/emdbed_example_test.go b/emdbed_example_test.go index 492bb16..9434756 100644 --- a/emdbed_example_test.go +++ b/emdbed_example_test.go @@ -22,6 +22,7 @@ func Example() { //func main() { // fmt.Println("Hello, world!") //} + // // ``` // }