tpls

package
v0.0.0-...-2a67e0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func PrintMultilines(lines string, prefix string) string

PrintMultilines prints multiple lines with a given prefix replaced by space for line with index > 0 (vertical alignment)

func WriteTemplateStrTo

func WriteTemplateStrTo(clog *changelog.Changelog, partial bool, vars map[string]interface{}, tplString string, out io.Writer) error

WriteTemplateStrTo write changelog content to out target using given template string

func WriteTemplateTo

func WriteTemplateTo(clog *changelog.Changelog, partial bool, vars map[string]interface{}, src string, out io.Writer) error

WriteTemplateTo writes changelog content to out target using src template file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL