Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // semanticVersionMatcher is taken from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string SemanticVersionMatcher = regexp.MustCompile(`v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?`) )
Functions ¶
Types ¶
type Markdown ¶ added in v0.3.4
type Markdown struct {
// contains filtered or unexported fields
}
func ParseMarkdown ¶ added in v0.3.4
func (*Markdown) EnsureSection ¶ added in v0.3.4
func (m *Markdown) EnsureSection(level int, headlinePrefix *string, headline string, contentLines []string) *MarkdownSection
EnsureSection ensures a section in the markdown and returns nil. If headlinePrefix is given and a headline with this prefix already exists, it returns the existing section.
type MarkdownSection ¶ added in v0.3.4
Click to show internal directories.
Click to hide internal directories.