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"
"strings"
"syscall"
"github.com/ditatompel/xmr-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/repo"
"xmr-remote-nodes/internal/database"
"xmr-remote-nodes/internal/repo"
"github.com/spf13/cobra"
"golang.org/x/term"

View file

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

View file

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

View file

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

View file

@ -5,12 +5,11 @@ import (
"os"
"os/signal"
"syscall"
"github.com/ditatompel/xmr-nodes/frontend"
"github.com/ditatompel/xmr-nodes/handler"
"github.com/ditatompel/xmr-nodes/internal/config"
"github.com/ditatompel/xmr-nodes/internal/database"
"github.com/ditatompel/xmr-nodes/internal/repo"
"xmr-remote-nodes/frontend"
"xmr-remote-nodes/handler"
"xmr-remote-nodes/internal/config"
"xmr-remote-nodes/internal/database"
"xmr-remote-nodes/internal/repo"
"github.com/gofiber/fiber/v2"
"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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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