Work out file reading and writing

This commit is contained in:
2025-03-27 22:02:36 +01:00
parent aac29a4074
commit 867b188718
3 changed files with 39 additions and 29 deletions

View File

@@ -31,15 +31,6 @@ type Processor interface {
FromLua(L *lua.LState) (interface{}, error)
}
// ModificationRecord tracks a single value modification
type ModificationRecord struct {
File string
OldValue string
NewValue string
Operation string
Context string
}
func NewLuaState() (*lua.LState, error) {
L := lua.NewState()
// defer L.Close()

View File

@@ -90,11 +90,6 @@ type CaptureGroup struct {
Updated string
Range [2]int
}
type ReplaceCommand struct {
From int
To int
With string
}
// ProcessContent applies regex replacement with Lua processing
func (p *RegexProcessor) ProcessContent(content string, pattern string, luaExpr string) (string, int, int, error) {