Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HelpMessage is the help text HelpMessage = `` /* 1155-byte string literal not displayed */ // HelpCommand is the command for help HelpCommand = "Help" )
View Source
const ( // HTMLTemplate is a template for HTML HTMLTemplate = `` /* 1250-byte string literal not displayed */ // Stylesheet is a stylesheet Stylesheet = `` /* 5551-byte string literal not displayed */ // MdTemplate is a markdown template MdTemplate = `` /* 848-byte string literal not displayed */ // MdTemplateRelease is a markdown template for a release MdTemplateRelease = `` /* 734-byte string literal not displayed */ // MdTemplateDescription is a markdown template for a release description MdTemplateDescription = `` /* 692-byte string literal not displayed */ )
Variables ¶
View Source
var CommandMapping = map[string]Command{ "Help": Help, "release": release, "to": transform, }
CommandMapping maps command names with command functions
View Source
var RegexSuffixes = `SNAPSHOT|ALPHA|BETA|RC|snapshot|alpha|beta|rc`
RegexSuffixes is a regexp for version suffixes
View Source
var RegexpDate = regexp.MustCompile(`^\d\d\d\d-\d\d-\d\d$`)
RegexpDate is a regexp for date
View Source
var RegexpFilename = regexp.MustCompile(`^(?i)change(-|_)?log(.yml|.yaml)?$`)
RegexpFilename is the regular expression for changelog filename
View Source
var RegexpVersion = regexp.MustCompile(`^\d+(\.\d+)*(-(` + RegexSuffixes + `)(-\d+)?)?$`)
RegexpVersion is a regexp for version
Functions ¶
func FindChangelog ¶
FindChangelog finds source file and return its name
func ReadChangelog ¶
ReadChangelog reads source file and return contents as array of bytes
Types ¶
type Changelog ¶
type Changelog []Release
Changelog is a list of releases
func ParseChangelog ¶
ParseChangelog parses source file and return Changelog object
type Release ¶
type Release struct { Version string Date string Summary string Added []string Changed []string Deprecated []string Removed []string Fixed []string Security []string Rejected []string Notes []string }
Release contains information about a release
type TemplateDataChangelog ¶
TemplateDataChangelog contains data for changelog template
Click to show internal directories.
Click to hide internal directories.