mirror of
https://github.com/lunchcat/sif.git
synced 2026-01-10 20:23:38 -08:00
refactor: move pkg/scan to internal/scan
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
"github.com/dropalldatabases/sif/internal/config"
|
||||
|
||||
// Register framework detectors
|
||||
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors"
|
||||
_ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -18,9 +18,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
||||
"github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||
// 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) {
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"math"
|
||||
"net/http"
|
||||
|
||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
||||
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -10,7 +10,7 @@ package detectors
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
||||
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -10,7 +10,7 @@ package detectors
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
||||
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -10,7 +10,7 @@ package detectors
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
||||
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
|
||||
"github.com/antchfx/htmlquery"
|
||||
"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"
|
||||
)
|
||||
|
||||
6
sif.go
6
sif.go
@@ -27,10 +27,10 @@ import (
|
||||
"github.com/dropalldatabases/sif/internal/config"
|
||||
"github.com/dropalldatabases/sif/internal/logger"
|
||||
"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/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.
|
||||
|
||||
Reference in New Issue
Block a user