Avoid naming module using a domain name pattern

I hope it will be less discoverable by other users and less likely to
be used unintentionally in other projects.
This commit is contained in:
Cristian Ditaputratama 2024-05-08 21:35:04 +07:00
parent d95530c595
commit 5496692c5d
Signed by: ditatompel
GPG key ID: 31D3D06D77950979
14 changed files with 22 additions and 33 deletions

View file

@ -6,9 +6,8 @@ import (
"os" "os"
"strings" "strings"
"syscall" "syscall"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database" "xmr-remote-nodes/internal/repo"
"github.com/ditatompel/xmr-nodes/internal/repo"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/term" "golang.org/x/term"

View file

@ -4,8 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http" "net/http"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -11,9 +11,8 @@ import (
"net/http" "net/http"
"os" "os"
"time" "time"
"xmr-remote-nodes/internal/config"
"github.com/ditatompel/xmr-nodes/internal/config" "xmr-remote-nodes/internal/repo"
"github.com/ditatompel/xmr-nodes/internal/repo"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/proxy" "golang.org/x/net/proxy"

View file

@ -2,8 +2,7 @@ package cmd
import ( import (
"os" "os"
"xmr-remote-nodes/internal/config"
"github.com/ditatompel/xmr-nodes/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -5,12 +5,11 @@ import (
"os" "os"
"os/signal" "os/signal"
"syscall" "syscall"
"xmr-remote-nodes/frontend"
"github.com/ditatompel/xmr-nodes/frontend" "xmr-remote-nodes/handler"
"github.com/ditatompel/xmr-nodes/handler" "xmr-remote-nodes/internal/config"
"github.com/ditatompel/xmr-nodes/internal/config" "xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database" "xmr-remote-nodes/internal/repo"
"github.com/ditatompel/xmr-nodes/internal/repo"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors" "github.com/gofiber/fiber/v2/middleware/cors"

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/ditatompel/xmr-nodes module xmr-remote-nodes
go 1.22.2 go 1.22.2

View file

@ -1,8 +1,8 @@
package handler package handler
import ( import (
"github.com/ditatompel/xmr-nodes/internal/database" "xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/repo" "xmr-remote-nodes/internal/repo"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View file

@ -4,9 +4,8 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"time" "time"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database" "xmr-remote-nodes/internal/repo"
"github.com/ditatompel/xmr-nodes/internal/repo"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View file

@ -2,8 +2,7 @@ package database
import ( import (
"fmt" "fmt"
"xmr-remote-nodes/internal/config"
"github.com/ditatompel/xmr-nodes/internal/config"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"

View file

@ -5,8 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"time" "time"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database"
"github.com/alexedwards/argon2id" "github.com/alexedwards/argon2id"
) )

View file

@ -6,8 +6,7 @@ import (
"slices" "slices"
"strings" "strings"
"time" "time"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database"
) )
type CronRepository interface { type CronRepository interface {

View file

@ -10,8 +10,7 @@ import (
"slices" "slices"
"strings" "strings"
"time" "time"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database"
"github.com/jmoiron/sqlx/types" "github.com/jmoiron/sqlx/types"
) )

View file

@ -4,8 +4,7 @@ import (
"fmt" "fmt"
"slices" "slices"
"strings" "strings"
"xmr-remote-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/database"
"github.com/google/uuid" "github.com/google/uuid"
) )

View file

@ -1,6 +1,6 @@
package main package main
import "github.com/ditatompel/xmr-nodes/cmd" import "xmr-remote-nodes/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()