refactor: unexport internal identifiers and fix naming nits

This commit is contained in:
Mathis Maquenne
2026-08-05 21:55:59 +02:00
parent c1775e5c04
commit eea049aae9
13 changed files with 34 additions and 34 deletions
+4 -4
View File
@@ -69,17 +69,17 @@ func (t *Track) Filename(kind Kind, mediaFormat string) string {
return base + "." + ext
}
func truncateBytes(s string, max int) string {
if max <= 0 {
func truncateBytes(s string, maxLen int) string {
if maxLen <= 0 {
return ""
}
if len(s) <= max {
if len(s) <= maxLen {
return s
}
last := 0
for i := range s {
if i > max {
if i > maxLen {
return s[:last]
}
last = i