changeloguru/pkg/markdown/generate.go

14 lines
245 B
Go
Raw Normal View History

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