Skip to content

Commit

Permalink
chore: move pkg/utilities
Browse files Browse the repository at this point in the history
moved pkg/utilities to internal/utilities to line up with go standards
for project layout

resolves #73
  • Loading branch information
lyledouglass committed Jun 2, 2024
1 parent 4bc23a0 commit 2838c71
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion internal/appUpdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"regexp"
"strings"
"time"
util "wowtools/pkg/utilities"
util "wowtools/internal/utilities"

"github.com/google/go-github/v56/github"
)
Expand Down
5 changes: 3 additions & 2 deletions internal/curseforgeOpener.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package internal

import (
"fmt"
"github.com/spf13/viper"
"log"
"os/exec"
"wowtools/pkg/utilities"
"wowtools/internal/utilities"

"github.com/spf13/viper"
)

func OpenCurseforge() {
Expand Down
2 changes: 1 addition & 1 deletion internal/ptrCopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"
"os/exec"
"wowtools/pkg/utilities"
"wowtools/internal/utilities"

"github.com/spf13/viper"
)
Expand Down
5 changes: 3 additions & 2 deletions internal/updateElvUI.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ package internal
import (
"encoding/json"
"fmt"
"github.com/spf13/viper"
"io/ioutil"
"log"
"net/http"
"os"
"regexp"
"strings"
"time"
utilities "wowtools/pkg/utilities"
utilities "wowtools/internal/utilities"

"github.com/spf13/viper"
)

func getCurrentElvuiVersion() []string {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/wtfBackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"
"time"
"wowtools/pkg/utilities"
"wowtools/internal/utilities"

"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/wtfRestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package internal
import (
"fmt"
"os"
"wowtools/pkg/utilities"
"wowtools/internal/utilities"

"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"sync"
"wowtools/internal"
util "wowtools/pkg/utilities"
util "wowtools/internal/utilities"

"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion test/logrus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package test

import (
"testing"
"wowtools/pkg/utilities"
"wowtools/internal/utilities"
)

func TestLogrus(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/removeFile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"
"testing"
"wowtools/pkg/utilities"
"wowtools/internal/utilities"
)

func TestRemoveFile(t *testing.T) {
Expand Down

0 comments on commit 2838c71

Please sign in to comment.