generator

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package generator provides the capabilities for changelog generation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Releases      data.Releases
	ChagenVersion string
	ChagenURL     string
}

Generator is resposible for generation of Changelogs. Each data field represents the data structure, which is consumed by the template.

func New added in v0.0.3

func New(r data.Releases) *Generator

New returns a new generator, which is filled and initialized with release data

func (*Generator) Render

func (g *Generator) Render(wr io.Writer) error

Render the content via template and write it to wr. It returns the result of template complication

Jump to

Keyboard shortcuts

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