changelogger

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	// Required change category or change type, for a list of all supported
	// change types see matcher.go.
	Category string

	// Required title, if set, it will use the title.
	Title string

	// Optional change description.
	Description string

	// Optional reference for the change source. If not set, it will use the
	// name of the note. It'll be formatted with the base-url
	Ref string
}

func (Change) TitleOrRef

func (c Change) TitleOrRef() string

func (Change) Validate

func (c Change) Validate(fileName string) error

Validate validates that the change entry is usable.

type Changes

type Changes []Change

func (Changes) ByCategory

func (cs Changes) ByCategory(cat string) Changes

func (Changes) Len

func (cs Changes) Len() int

func (Changes) Less

func (cs Changes) Less(i, j int) bool

func (Changes) Swap

func (cs Changes) Swap(i, j int)

Jump to

Keyboard shortcuts

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