Merge pull request 'Fix: go module issue' (#1) from kayos/endless:main into main

Reviewed-on: #1

Thanks, I'm still get confused my go mod dependencies at times. Especially when they were once a package and I try to refactor that pacakage.
This commit is contained in:
moony 2023-03-27 22:05:50 +00:00
commit 15d21d3717
5 changed files with 10 additions and 7 deletions

View File

@ -1,11 +1,12 @@
package endless
package main
import (
"components/modules"
"components/utils"
"fmt"
"time"
"git.tcp.direct/moony/endless/components/modules"
"git.tcp.direct/moony/endless/internal/utils"
"github.com/zenthangplus/goccm"
)

View File

@ -1,7 +1,6 @@
package modules
import (
"components/utils"
"fmt"
"io/ioutil"
"net/http"
@ -9,6 +8,8 @@ import (
"strings"
"time"
"git.tcp.direct/moony/endless/internal/utils"
"h12.io/socks"
)

View File

@ -1,13 +1,14 @@
package modules
import (
"components/utils"
"fmt"
"io/ioutil"
"net/http"
"strings"
"time"
"git.tcp.direct/moony/endless/internal/utils"
"github.com/zenthangplus/goccm"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module endless
module git.tcp.direct/moony/endless
go 1.20

View File

@ -10,7 +10,7 @@ import (
"h12.io/socks"
"git.tcp.direct/moony/endless/internal/moonproxy"
"git.tcp.direct/moony/endless/internal/utils"
)
func GetHttpTransport(Proxy string) *http.Transport {