changelog

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Changelog

type Changelog struct {
	// Internal for data grouping
	SemverGroups map[changelog_types.ChangelogSectionType]*changelogSemverGroup

	// For template
	Header              templates.Header
	OrderedSemverGroups []*changelogSemverGroup
}

func NewChangelog

func NewChangelog(
	g *semanticgit.SemanticGit,
	semver_options semvertype.OptionsSemVer,
	config settings.ConfigScheme,
	FromTag types.TagName,
) Changelog

type ChangelogBBCode

type ChangelogBBCode struct {
	Changelog
}

func (ChangelogBBCode) GetSemverGroups

func (changelog ChangelogBBCode) GetSemverGroups() map[changelog_types.ChangelogSectionType]*changelogSemverGroup

func (ChangelogBBCode) Render

func (changelog ChangelogBBCode) Render() string

func (ChangelogBBCode) RenderHeader

func (changelog ChangelogBBCode) RenderHeader() string

type ChangelogFormat

type ChangelogFormat string
const (
	FormatMarkdown ChangelogFormat = "markdown"
	FormatBBCode   ChangelogFormat = "bbcode"
)

type ChangelogMarkdown

type ChangelogMarkdown struct {
	Changelog
}

func (ChangelogMarkdown) GetSemverGroups

func (changelog ChangelogMarkdown) GetSemverGroups() map[changelog_types.ChangelogSectionType]*changelogSemverGroup

func (ChangelogMarkdown) Render

func (changelog ChangelogMarkdown) Render() string

func (ChangelogMarkdown) RenderHeader

func (changelog ChangelogMarkdown) RenderHeader() string

type IChangelog

type IChangelog interface {
	Render() string
	GetSemverGroups() map[changelog_types.ChangelogSectionType]*changelogSemverGroup
}

func NewChangelogBBCode

func NewChangelogBBCode(
	g *semanticgit.SemanticGit,
	semver_options semvertype.OptionsSemVer,
	config settings.ConfigScheme,
	FromTag types.TagName,
) IChangelog

func NewChangelogMarkdown

func NewChangelogMarkdown(
	g *semanticgit.SemanticGit,
	semver_options semvertype.OptionsSemVer,
	config settings.ConfigScheme,
	FromTag types.TagName,
) IChangelog

type NotFound

type NotFound struct {
}

func (NotFound) Error

func (n NotFound) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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