Versions in this module Expand all Collapse all v0 v0.8.3 Dec 1, 2026 v0.8.2 Nov 30, 2026 v0.8.1 Nov 15, 2026 v0.8.0 Nov 15, 2026 Changes in this version type FormatOptions + OmitLabel bool type JunkKind + const JunkKindNote type Track + Label *string v0.7.1 Nov 15, 2026 v0.7.0 Nov 15, 2026 v0.6.1 Nov 14, 2026 v0.6.0 Nov 14, 2026 Changes in this version + const SpecVersion + func Format(track Track) string + func FormatWith(track Track, options FormatOptions) string + func Normalize(input string) string + func Ptr[T any](v T) *T + type Artist struct + Joiner *string + Name string + Role Role + Source Source + func AllArtists(track Track) []Artist + func ParseArtists(input string) []Artist + func ParseArtistsWith(input string, options ParseOptions) []Artist + func (a Artist) MarshalJSON() ([]byte, error) + type Delimiter string + const DelimiterCurly + const DelimiterDash + const DelimiterParen + const DelimiterSquare + func AllDelimiters() []Delimiter + type Edit struct + After int + From *int + Line int + Lines []int + Op EditOp + Rest string + Seconds float64 + Text string + func Delete(line int) Edit + func Insert(after int, text string) Edit + func SetRest(line int, rest string) Edit + func SetTime(line int, seconds float64) Edit + func Shift(seconds float64) Edit + func ShiftFrom(seconds float64, from int) Edit + func ShiftLines(seconds float64, lines ...int) Edit + func SortByTime() Edit + func (e Edit) MarshalJSON() ([]byte, error) + type EditOp string + const EditOpDelete + const EditOpInsert + const EditOpSetRest + const EditOpSetTime + const EditOpShift + const EditOpSortByTime + func AllEditOps() []EditOp + type EditResult struct + Changed []int + Text string + Warnings []EditWarning + func ApplyEdits(text string, edits []Edit) EditResult + func ApplyEditsWith(text string, edits []Edit, options TracklistOptions) EditResult + func (r EditResult) MarshalJSON() ([]byte, error) + type EditWarning struct + Code EditWarningCode + Edit int + Line *int + func (x EditWarning) MarshalJSON() ([]byte, error) + type EditWarningCode string + const EditWarningCodeEditInvalid + const EditWarningCodeStyleUpgraded + const EditWarningCodeTimeClamped + func AllEditWarningCodes() []EditWarningCode + type Entry struct + Eol Eol + Kind EntryKind + Layered bool + Line int + Parts Parts + Raw string + Time *TracklistTime + Track *Track + func (e Entry) MarshalJSON() ([]byte, error) + type EntryKind string + const EntryKindBlank + const EntryKindHeader + const EntryKindLink + const EntryKindMarker + const EntryKindNote + const EntryKindTrack + func AllEntryKinds() []EntryKind + type Eol string + const EolCR + const EolCRLF + const EolLF + const EolNone + func AllEols() []Eol + type FeatPlacement string + const FeatArtist + const FeatOmit + const FeatSource + const FeatTitle + type Flags struct + Clean bool + Explicit bool + UnknownArtist bool + UnknownTitle bool + func (f Flags) MarshalJSON() ([]byte, error) + type FormatOptions struct + Feat FeatPlacement + FeatMarker *string + Joiners JoinerStyle + OmitProducers bool + Position bool + Versions VersionsOption + type JoinerStyle string + const JoinersCanonical + const JoinersOriginal + type Junk struct + Kind JunkKind + Raw string + func (j Junk) MarshalJSON() ([]byte, error) + type JunkKind string + const JunkKindAudio + const JunkKindGenre + const JunkKindLabel + const JunkKindLyrics + const JunkKindOther + const JunkKindPlatform + const JunkKindPromo + const JunkKindQuality + const JunkKindVideo + func AllJunkKinds() []JunkKind + type JunkPhrase struct + Kind JunkKind + Phrase string + type Keywords struct + Descriptors []string + FeatMarkers []string + Genres []string + Junk []JunkPhrase + VersionHeads []VersionHead + type Mode string + const ModeAuto + const ModeClean + const ModeFilename + const ModeTracklist + const ModeYouTube + func AllModes() []Mode + type ParseOptions struct + Keywords Keywords + KnownArtists []string + Mode Mode + SplitAnd SplitAnd + Uploader string + type Parser struct + func NewParser(options ParseOptions) *Parser + func (p *Parser) Parse(input string) Track + func (p *Parser) ParseArtists(input string) []Artist + type Parts struct + Gap string + Lead string + Rest string + Time string + func (p Parts) MarshalJSON() ([]byte, error) + type Position struct + Number int + Raw string + func (p Position) MarshalJSON() ([]byte, error) + type Role string + const RoleFeatured + const RolePrimary + const RoleProducer + const RoleRemixer + func AllRoles() []Role + type Severity string + const SeverityInfo + const SeverityWarning + func AllSeverities() []Severity + type Source string + const SourceArtist + const SourceTitle + const SourceVersion + func AllSources() []Source + type SplitAnd string + const SplitAndAlways + const SplitAndAuto + const SplitAndNever + type Stats struct + FirstTime *float64 + LastTime *float64 + Lines int + Markers int + Timed int + Tracks int + func (s Stats) MarshalJSON() ([]byte, error) + type Suggestion struct + Line int + Raw string + Seconds float64 + func (s Suggestion) MarshalJSON() ([]byte, error) + type Timestamp struct + Raw string + Seconds int + func (t Timestamp) MarshalJSON() ([]byte, error) + type Track struct + Artists []Artist + Flags Flags + FullTitle string + Input string + Junk []Junk + Mode Mode + Position *Position + Timestamp *Timestamp + Title string + Versions []Version + Warnings []Warning + Year *int + func Parse(input string) Track + func ParseWith(input string, options ParseOptions) Track + func (t *Track) UnmarshalJSON(data []byte) error + func (t Track) MarshalJSON() ([]byte, error) + type Tracklist struct + Entries []Entry + SpecVersion string + Stats Stats + Warnings []TracklistWarning + func ParseTracklist(text string) Tracklist + func ParseTracklistWith(text string, options TracklistOptions) Tracklist + func (t Tracklist) MarshalJSON() ([]byte, error) + type TracklistOptions struct + AudioSeconds *float64 + Keywords Keywords + KnownArtists []string + MarkerWords []string + Mode Mode + SplitAnd SplitAnd + type TracklistTime struct + Raw string + Seconds float64 + func (t TracklistTime) MarshalJSON() ([]byte, error) + type TracklistWarning struct + Code WarningCode + Line int + Severity Severity + Suggestion *Suggestion + func (x TracklistWarning) MarshalJSON() ([]byte, error) + type Version struct + Artists []Artist + Delimiter Delimiter + Descriptor *string + Modifiers []string + Raw string + Type VersionType + UnknownArtist bool + Year *int + func (v Version) MarshalJSON() ([]byte, error) + type VersionHead struct + Key string + Type VersionType + type VersionType string + const VersionTypeAcapella + const VersionTypeAcoustic + const VersionTypeBlend + const VersionTypeBootleg + const VersionTypeClub + const VersionTypeCover + const VersionTypeDemo + const VersionTypeDub + const VersionTypeEdit + const VersionTypeExtended + const VersionTypeFlip + const VersionTypeInstrumental + const VersionTypeLive + const VersionTypeMashup + const VersionTypeMix + const VersionTypeNightcore + const VersionTypeOriginal + const VersionTypeRadio + const VersionTypeRefix + const VersionTypeRemaster + const VersionTypeRemix + const VersionTypeReprise + const VersionTypeRework + const VersionTypeSlowed + const VersionTypeSpedUp + const VersionTypeVIP + const VersionTypeVersion + func AllVersionTypes() []VersionType + type VersionsOption string + const VersionsAll + const VersionsNone + type Warning string + const WarningAmbiguousMixCredit + const WarningAmbiguousSeparator + const WarningAsymmetricDashSplit + const WarningBySplit + const WarningNoSeparator + const WarningQuotedTitleSplit + const WarningUnbalancedBrackets + const WarningUnspacedDashSplit + func AllWarnings() []Warning + type WarningCode string + const WarningCodeInvalidTime + const WarningCodeLineUnparsed + const WarningCodeNoStartAtZero + const WarningCodePositionDuplicate + const WarningCodePositionGap + const WarningCodeTimeAfterAudioEnd + const WarningCodeTimeDuplicate + const WarningCodeTimeMissing + const WarningCodeTimeOutOfOrder + func AllWarningCodes() []WarningCode