Refactor import, edit go module with github.com

This commit is contained in:
Mario
2023-10-05 21:40:34 +02:00
parent dbcff8d002
commit 9b4b399df0
9 changed files with 24 additions and 24 deletions

View File

@ -1,12 +1,12 @@
package builder package builder
import ( import (
"beelzebub/parser"
"beelzebub/protocols"
"beelzebub/protocols/strategies"
"beelzebub/tracer"
"errors" "errors"
"fmt" "fmt"
"github.com/mariocandela/beelzebub/parser"
"github.com/mariocandela/beelzebub/protocols"
"github.com/mariocandela/beelzebub/protocols/strategies"
"github.com/mariocandela/beelzebub/tracer"
"io" "io"
"net/http" "net/http"
"os" "os"

View File

@ -1,10 +1,10 @@
package builder package builder
import ( import (
"beelzebub/parser"
"beelzebub/tracer"
"context" "context"
"encoding/json" "encoding/json"
"github.com/mariocandela/beelzebub/parser"
"github.com/mariocandela/beelzebub/tracer"
amqp "github.com/rabbitmq/amqp091-go" amqp "github.com/rabbitmq/amqp091-go"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"

2
go.mod
View File

@ -1,4 +1,4 @@
module beelzebub module github.com/mariocandela/beelzebub
go 1.20 go 1.20

View File

@ -1,10 +1,10 @@
package integration package integration
import ( import (
"beelzebub/builder"
"beelzebub/parser"
"beelzebub/tracer"
"encoding/json" "encoding/json"
"github.com/mariocandela/beelzebub/builder"
"github.com/mariocandela/beelzebub/parser"
"github.com/mariocandela/beelzebub/tracer"
"net" "net"
"net/http" "net/http"
"os" "os"

10
main.go
View File

@ -1,19 +1,19 @@
package main package main
import ( import (
"beelzebub/builder"
"beelzebub/parser"
"flag" "flag"
"github.com/mariocandela/beelzebub/builder"
"github.com/mariocandela/beelzebub/parser"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
func main() { func main() {
var ( var (
quit = make(chan struct{}) quit = make(chan struct{})
configurationsCorePath string configurationsCorePath string
configurationsServicesDirectory string configurationsServicesDirectory string
) )
flag.StringVar(&configurationsCorePath, "confCore", "./configurations/beelzebub.yaml", "Provide the path of configurations core") flag.StringVar(&configurationsCorePath, "confCore", "./configurations/beelzebub.yaml", "Provide the path of configurations core")
flag.StringVar(&configurationsServicesDirectory, "confServices", "./configurations/services/", "Directory config services") flag.StringVar(&configurationsServicesDirectory, "confServices", "./configurations/services/", "Directory config services")

View File

@ -1,8 +1,8 @@
package protocols package protocols
import ( import (
"beelzebub/parser" "github.com/mariocandela/beelzebub/parser"
"beelzebub/tracer" "github.com/mariocandela/beelzebub/tracer"
) )
type ServiceStrategy interface { type ServiceStrategy interface {

View File

@ -1,9 +1,9 @@
package strategies package strategies
import ( import (
"beelzebub/parser"
"beelzebub/tracer"
"fmt" "fmt"
"github.com/mariocandela/beelzebub/parser"
"github.com/mariocandela/beelzebub/tracer"
"io" "io"
"net/http" "net/http"
"regexp" "regexp"

View File

@ -1,10 +1,10 @@
package strategies package strategies
import ( import (
"beelzebub/parser"
"beelzebub/plugins"
"beelzebub/tracer"
"fmt" "fmt"
"github.com/mariocandela/beelzebub/parser"
"github.com/mariocandela/beelzebub/plugins"
"github.com/mariocandela/beelzebub/tracer"
"regexp" "regexp"
"strings" "strings"
"time" "time"

View File

@ -1,9 +1,9 @@
package strategies package strategies
import ( import (
"beelzebub/parser"
"beelzebub/tracer"
"fmt" "fmt"
"github.com/mariocandela/beelzebub/parser"
"github.com/mariocandela/beelzebub/tracer"
"net" "net"
"time" "time"