changeloguru/pkg/markdown/generate.go

14 lines
245 B
Go

package markdown
import "strings"
func Generate(bases []Node) string {
lines := make([]string, len(bases))
for i, base := range bases {
lines[i] = base.String()
}
return strings.Join(lines, string(NewlineToken)+string(NewlineToken))
}