调整结构

This commit is contained in:
2025-09-25 13:48:00 +08:00
parent 7cbb4b2cf9
commit 1cec74cec7
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -20,7 +20,10 @@ func ParseErlangFile(filePath string) (*ModuleInfo, error) {
if err != nil {
return nil, fmt.Errorf("读取文件失败: %v", err)
}
return ParseErlangFileByBytes(filePath, content)
}
func ParseErlangFileByBytes(filePath string, content []byte) (*ModuleInfo, error) {
lines := strings.Split(string(content), "\n")
moduleInfo := &ModuleInfo{
FilePath: filePath,