Documentation ¶
Overview ¶
Package markdown implements sourcing unreleased entries from https://keepachangelog.com/en/1.0.0/
Index ¶
Constants ¶
View Source
const ( ChangelogHeader = "Changelog" LevelFirst = iota LevelSecond LevelThird )
Variables ¶
View Source
var ( ErrNoChangelogHeader = errors.New("no Changelog top-header found") ErrEmptyHeldHeader = errors.New("held header found with empty content") ErrNoUnreleasedL2Header = errors.New("changelog must contain a L2 Unreleased header, even if it is empty") ErrL2WrongChildren = errors.New("header can only contain L3 headers") ErrL3HeaderEmptyContent = errors.New("header found with empty content") ErrL3HeaderNoItemizedList = errors.New("header must contain only an itemized list") )
Functions ¶
This section is empty.
Types ¶
type Markdown ¶
type Markdown struct {
// contains filtered or unexported fields
}
Markdown is a changelog.Source that produces a changelog.Changelog from a markdown file that resembles the [Keep a changelog](https://keepachangelog.com/en/1.0.0/) format.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is an object that validates a headingdoc.Doc.
func NewValidator ¶
NewValidator returns a new Validator for a headingdoc.Doc read from the supplied reader.
Directories ¶
Path | Synopsis |
---|---|
Package merger contains the Merger object, which incorporates a changelog.Changelog into a full markdown changelog.
|
Package merger contains the Merger object, which incorporates a changelog.Changelog into a full markdown changelog. |
Click to show internal directories.
Click to hide internal directories.