fix: using proper v2 package suffix (fixes #727)

This commit is contained in:
Simone Margaritelli 2024-08-09 18:19:21 +02:00
commit 2659a559c9
131 changed files with 318 additions and 297 deletions

View file

@ -2,7 +2,8 @@ package graph
import (
"fmt"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/v2/network"
)
func (mod *Module) createIPGraph(endpoint *network.Endpoint) (*Node, bool, error) {

View file

@ -2,8 +2,9 @@ package graph
import (
"fmt"
"github.com/bettercap/bettercap/session"
"time"
"github.com/bettercap/bettercap/v2/session"
)
type EdgeType string

View file

@ -3,14 +3,15 @@ package graph
import (
"encoding/json"
"fmt"
"github.com/bettercap/bettercap/session"
"github.com/evilsocket/islazy/fs"
"path"
"sync"
"time"
"github.com/bettercap/bettercap/v2/session"
"github.com/evilsocket/islazy/fs"
)
var Loaded = (* Graph)(nil)
var Loaded = (*Graph)(nil)
type NodeCallback func(*Node)
type EdgeCallback func(*Node, []Edge, *Node)

View file

@ -1,7 +1,7 @@
package graph
import (
"github.com/bettercap/bettercap/log"
"github.com/bettercap/bettercap/v2/log"
)
type graphPackage struct{}

View file

@ -7,10 +7,10 @@ import (
"sync"
"time"
"github.com/bettercap/bettercap/caplets"
"github.com/bettercap/bettercap/modules/wifi"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/session"
"github.com/bettercap/bettercap/v2/caplets"
"github.com/bettercap/bettercap/v2/modules/wifi"
"github.com/bettercap/bettercap/v2/network"
"github.com/bettercap/bettercap/v2/session"
"github.com/evilsocket/islazy/fs"
"github.com/evilsocket/islazy/plugin"
"github.com/evilsocket/islazy/str"