cmd/test2json2gha/markdown.go (15 lines of code) (raw):
package main
import (
"fmt"
"io"
)
func mdBold(v string) string {
return "**" + v + "**"
}
func mdPreformat(s string) string {
return fmt.Sprintf("\n```\n%s```\n", s)
}
type nopWriteCloser struct {
io.Writer
}
func (c *nopWriteCloser) Close() error { return nil }