mapper

package
v0.0.0-...-3a64406 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilTemplateField = errors.New("required link template field is nil")

Functions

This section is empty.

Types

type Dictionary

type Dictionary struct {
	Changelogs map[string]string `yaml:"dictionary"`
}

Dictionary stores a mapping between dependency names and templates to obtain a changelog link. Templates have access to fields of the changelog.Dependency object.

func NewDictionary

func NewDictionary(r io.Reader) (Dictionary, error)

func (Dictionary) Map

type Github

type Github struct{}

func (Github) Map

func (Github) Map(dep changelog.Dependency) string

Jump to

Keyboard shortcuts

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