refactor: move pkg/scan to internal/scan

This commit is contained in:
vmfunc
2026-01-03 03:10:19 -08:00
parent 6d8319dfa8
commit d2537dae1b
35 changed files with 11 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ import (
"github.com/dropalldatabases/sif/internal/config" "github.com/dropalldatabases/sif/internal/config"
// Register framework detectors // Register framework detectors
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors" _ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
) )
func main() { func main() {

View File

@@ -18,9 +18,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/dropalldatabases/sif/pkg/scan/frameworks" "github.com/dropalldatabases/sif/internal/scan/frameworks"
// Import detectors to register them via init() // Import detectors to register them via init()
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors" _ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
) )
func TestExtractVersion_Laravel(t *testing.T) { func TestExtractVersion_Laravel(t *testing.T) {

View File

@@ -11,7 +11,7 @@ import (
"math" "math"
"net/http" "net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks" fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
) )
func init() { func init() {

View File

@@ -10,7 +10,7 @@ package detectors
import ( import (
"net/http" "net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks" fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
) )
func init() { func init() {

View File

@@ -10,7 +10,7 @@ package detectors
import ( import (
"net/http" "net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks" fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
) )
func init() { func init() {

View File

@@ -10,7 +10,7 @@ package detectors
import ( import (
"net/http" "net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks" fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
) )
func init() { func init() {

View File

@@ -23,7 +23,7 @@ import (
"github.com/antchfx/htmlquery" "github.com/antchfx/htmlquery"
"github.com/charmbracelet/log" "github.com/charmbracelet/log"
"github.com/dropalldatabases/sif/pkg/scan/js/frameworks" "github.com/dropalldatabases/sif/internal/scan/js/frameworks"
urlutil "github.com/projectdiscovery/utils/url" urlutil "github.com/projectdiscovery/utils/url"
) )

6
sif.go
View File

@@ -27,10 +27,10 @@ import (
"github.com/dropalldatabases/sif/internal/config" "github.com/dropalldatabases/sif/internal/config"
"github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/logger"
"github.com/dropalldatabases/sif/internal/modules" "github.com/dropalldatabases/sif/internal/modules"
"github.com/dropalldatabases/sif/internal/scan"
"github.com/dropalldatabases/sif/internal/scan/frameworks"
jsscan "github.com/dropalldatabases/sif/internal/scan/js"
"github.com/dropalldatabases/sif/internal/styles" "github.com/dropalldatabases/sif/internal/styles"
"github.com/dropalldatabases/sif/pkg/scan"
"github.com/dropalldatabases/sif/pkg/scan/frameworks"
jsscan "github.com/dropalldatabases/sif/pkg/scan/js"
) )
// App represents the main application structure for sif. // App represents the main application structure for sif.