chore: seperate large files

This commit is contained in:
CDN 2025-04-23 19:22:41 +08:00
parent ebbf516689
commit 76e1298ded
Signed by: CDN
GPG key ID: 0C656827F9F80080
44 changed files with 5745 additions and 4173 deletions

View file

@ -0,0 +1,17 @@
package ass
import (
"fmt"
)
// Format 格式化ASS文件
func Format(filePath string) error {
// 读取ASS文件
assFile, err := Parse(filePath)
if err != nil {
return fmt.Errorf("解析ASS文件失败: %w", err)
}
// 写回格式化后的ASS文件
return Generate(assFile, filePath)
}