Versions in this module Expand all Collapse all v0 v0.1.0 Nov 25, 2026 Changes in this version + type Commit struct + func Parse(input string) (Commit, error) + func (c Commit) Body() string + func (c Commit) BodyGap() Gap + func (c Commit) BodyLines() iter.Seq[Line] + func (c Commit) BodySpan() Span + func (c Commit) Description() string + func (c Commit) DescriptionSpan() Span + func (c Commit) Footer() string + func (c Commit) FooterAt(index int) Footer + func (c Commit) FooterCount() int + func (c Commit) FooterGap() Gap + func (c Commit) FooterLines() iter.Seq[Line] + func (c Commit) FooterSpan() Span + func (c Commit) Footers() iter.Seq[Footer] + func (c Commit) HasBody() bool + func (c Commit) HasBreakingFooter() bool + func (c Commit) HasFooter() bool + func (c Commit) HasHeaderBang() bool + func (c Commit) HasScope() bool + func (c Commit) Header() string + func (c Commit) HeaderBangSpan() Span + func (c Commit) HeaderSeparator() string + func (c Commit) HeaderSeparatorSpan() Span + func (c Commit) HeaderSpan() Span + func (c Commit) Indent() string + func (c Commit) IndentSpan() Span + func (c Commit) IsBreakingChange() bool + func (c Commit) Lines(span Span) LineIterator + func (c Commit) Message() string + func (c Commit) Position(offset int) Position + func (c Commit) Scope() string + func (c Commit) ScopeSpan() Span + func (c Commit) Text(span Span) string + func (c Commit) Trailing() string + func (c Commit) TrailingSpan() Span + func (c Commit) Type() string + func (c Commit) TypeSpan() Span + type ErrorCode uint8 + const InvalidCharacter + const InvalidDescription + const InvalidEncoding + const InvalidFooterValue + const InvalidScope + const InvalidSectionSeparator + const InvalidSeparator + const InvalidType + func (c ErrorCode) String() string + type Footer struct + func (f Footer) IsBreaking() bool + func (f Footer) Separator() Separator + func (f Footer) SeparatorSpan() Span + func (f Footer) Span() Span + func (f Footer) Token() string + func (f Footer) TokenSpan() Span + func (f Footer) Value() string + func (f Footer) ValueSpan() Span + type Gap struct + BlankLines int + Span Span + func (g Gap) IsZero() bool + type Inspection struct + Commit Commit + Diagnostics []ParseError + Structured bool + func Inspect(input string) Inspection + func (i Inspection) Valid() bool + type Line struct + Content Span + Ending Span + type LineIterator struct + func Lines(input string) LineIterator + func (it *LineIterator) Next() (Line, bool) + type ParseError struct + Code ErrorCode + Offset int + func (e *ParseError) Error() string + type Position struct + Column int + Line int + func Locate(input string, offset int) Position + type Separator uint8 + const Colon + const Hash + func (s Separator) String() string + type Span struct + End int + Start int + func (s Span) Contains(offset int) bool + func (s Span) IsEmpty() bool + func (s Span) IsZero() bool + func (s Span) Len() int