Documentation ¶
Index ¶
- Variables
- func GenerateTemplate(clog *changelog.Changelog, partial bool, vars map[string]interface{}, ...) (string, error)
- func GenerateTemplateStr(clog *changelog.Changelog, partial bool, vars map[string]interface{}, ...) (string, error)
- func PrintMultilines(lines string, prefix string) string
- func WriteTemplateStrTo(clog *changelog.Changelog, partial bool, vars map[string]interface{}, ...) error
- func WriteTemplateTo(clog *changelog.Changelog, partial bool, vars map[string]interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CHANGELOG = `` /* 268-byte string literal not displayed */
CHANGELOG is the layout for a changelog export.
View Source
var DEBIAN = `` /* 379-byte string literal not displayed */
DEBIAN is the layout for a debian export.
View Source
var GHRELEASE = `` /* 195-byte string literal not displayed */
GHRELEASE is the format for the gh release page : https://github.com/mh-cbon/go-repo-utils/releases, it should export only one version.
View Source
var MD = `` /* 615-byte string literal not displayed */
MD is the layout for a Markdwon export.
View Source
var RPM = `` /* 283-byte string literal not displayed */
RPM is the layout for an rpm export.
Functions ¶
func GenerateTemplate ¶
func GenerateTemplate(clog *changelog.Changelog, partial bool, vars map[string]interface{}, src string) (string, error)
GenerateTemplate generates the changelog content using given src template file
func GenerateTemplateStr ¶
func GenerateTemplateStr(clog *changelog.Changelog, partial bool, vars map[string]interface{}, tplString string) (string, error)
GenerateTemplateStr generates changelog content using given template string
func PrintMultilines ¶
PrintMultilines prints multiple lines with a given prefix replaced by space for line with index > 0 (vertical alignment)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.