chore: seperate large files
This commit is contained in:
parent
ebbf516689
commit
76e1298ded
44 changed files with 5745 additions and 4173 deletions
17
internal/format/ass/formatter.go
Normal file
17
internal/format/ass/formatter.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue