refactor: extract the state module and make the backoff error instead of panic

This PR:
- moves state.go to its own module
- moves the phpheaders test the phpheaders module
- simplifies backoff.go
- makes the backoff error instead of panic (so it can be tested)
- removes some unused C structs
This commit is contained in:
Alexander Stecher
2025-12-02 23:10:12 +01:00
committed by GitHub
parent 16e2bbb969
commit 98573ed7c0
23 changed files with 268 additions and 335 deletions

View File

@@ -1,5 +1,6 @@
package phpheaders
import "C"
import (
"context"
"strings"