Documentation ¶
Overview ¶
Package formatter contains everything related to changelog Formatters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTemplateFormatter ¶ added in v0.4.0
type CustomTemplateFormatter struct {
// contains filtered or unexported fields
}
A CustomTemplateFormatter is a Formatter rendering changelogs with Go templates
type Formatter ¶
type Formatter interface { // Format formats the given changelog. Format(changelog *changelog.Changelog) (string, error) }
Formatter formats Changelogs.
func NewCustomTemplateFormatter ¶ added in v0.4.0
NewCustomTemplateFormatter creates a new instance of a CustomTemplateFormatter
func NewMarkdownFormatter ¶ added in v0.4.0
func NewMarkdownFormatter(opts ...MarkdownOption) (Formatter, error)
NewMarkdownFormatter creates a new instance of a MarkdownFormatter
type MarkdownFormatter ¶ added in v0.4.0
type MarkdownFormatter struct {
MarkdownOptions *markdownOptions
}
A MarkdownFormatter is a formatter rendering Markdown formats.
type MarkdownOption ¶ added in v0.4.0
type MarkdownOption func(opt *markdownOptions)
A MarkdownOption sets options for markdown format such as whether or not to include scopes.
func WithScopes ¶ added in v0.4.0
func WithScopes() MarkdownOption
WithScopes includes scopes to markdown format.
Click to show internal directories.
Click to hide internal directories.