Skip to content

Commit

Permalink
chore: mv define to top-level dir
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Dec 1, 2024
1 parent aed0ab5 commit b044a94
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/soulteary/apt-proxy/internal/define"
"github.com/soulteary/apt-proxy/define"
"github.com/soulteary/apt-proxy/internal/state"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/define/define_test.go → define/define_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
)

func TestRuleToString(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

Define "github.com/soulteary/apt-proxy/define"
Benchmark "github.com/soulteary/apt-proxy/internal/benchmark"
Define "github.com/soulteary/apt-proxy/internal/define"
Mirrors "github.com/soulteary/apt-proxy/internal/mirrors"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/mirrors/mirrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"regexp"
"strings"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
)

func GenerateMirrorListByPredefined(osType int) (mirrors []string) {
Expand Down
2 changes: 1 addition & 1 deletion internal/mirrors/mirrors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
)

func TestGetUbuntuMirrorByAliases(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/mirrors/ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bufio"
"net/http"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
)

func GetUbuntuMirrorUrlsByGeo() (mirrors []string, err error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/rewriter/rewriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/url"
"regexp"

Define "github.com/soulteary/apt-proxy/define"
Benchmark "github.com/soulteary/apt-proxy/internal/benchmark"
Define "github.com/soulteary/apt-proxy/internal/define"
Mirrors "github.com/soulteary/apt-proxy/internal/mirrors"
State "github.com/soulteary/apt-proxy/internal/state"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/rewriter/rewriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

Define "github.com/soulteary/apt-proxy/define"
Benchmark "github.com/soulteary/apt-proxy/internal/benchmark"
Define "github.com/soulteary/apt-proxy/internal/define"
State "github.com/soulteary/apt-proxy/internal/state"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/server/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httputil"
"time"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
Rewriter "github.com/soulteary/apt-proxy/internal/rewriter"
State "github.com/soulteary/apt-proxy/internal/state"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/state/alpine.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package state
import (
"net/url"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
Mirrors "github.com/soulteary/apt-proxy/internal/mirrors"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/state/centos.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package state
import (
"net/url"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
Mirrors "github.com/soulteary/apt-proxy/internal/mirrors"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/state/debian.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package state
import (
"net/url"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
Mirrors "github.com/soulteary/apt-proxy/internal/mirrors"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/state/global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package state
import (
"testing"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
)

func TestSetProxyMode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/state/ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package state
import (
"net/url"

Define "github.com/soulteary/apt-proxy/internal/define"
Define "github.com/soulteary/apt-proxy/define"
Mirrors "github.com/soulteary/apt-proxy/internal/mirrors"
)

Expand Down

0 comments on commit b044a94

Please sign in to comment.