mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-08-04 00:32:51 +00:00
24 lines
492 B
Go
24 lines
492 B
Go
package main
|
|
|
|
import (
|
|
"io"
|
|
|
|
chglog "github.com/git-chglog/git-chglog"
|
|
)
|
|
|
|
// Generator ...
|
|
type Generator interface {
|
|
Generate(*chglog.Logger, io.Writer, string, *chglog.Config) error
|
|
}
|
|
|
|
type generatorImpl struct{}
|
|
|
|
// NewGenerator ...
|
|
func NewGenerator() Generator {
|
|
return &generatorImpl{}
|
|
}
|
|
|
|
// Generate ...
|
|
func (*generatorImpl) Generate(logger *chglog.Logger, w io.Writer, query string, config *chglog.Config) error {
|
|
return chglog.NewGenerator(logger, config).Generate(w, query)
|
|
}
|