Skip to content

Commit

Permalink
add go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
snail007 committed May 21, 2021
1 parent faf9ef3 commit 03670bf
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea
/goproxy
/go.sum
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io/ioutil"
"log"
"os"
"proxy/services"
"proxy/utils"
"github.com/snail007/goproxy/services"
"github.com/snail007/goproxy/utils"

kingpin "gopkg.in/alecthomas/kingpin.v2"
)
Expand Down
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/snail007/goproxy

go 1.16

require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
github.com/stretchr/testify v1.7.0 // indirect
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package main

import (
"fmt"
"github.com/snail007/goproxy/services"
"log"
"os"
"os/signal"
"proxy/services"
"syscall"
)

Expand Down
2 changes: 1 addition & 1 deletion services/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"log"
"net"
"proxy/utils"
"github.com/snail007/goproxy/utils"
"runtime/debug"
"strconv"
)
Expand Down
2 changes: 1 addition & 1 deletion services/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"log"
"net"
"proxy/utils"
"github.com/snail007/goproxy/utils"
"runtime/debug"
"time"

Expand Down
2 changes: 1 addition & 1 deletion services/tunnel_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"log"
"net"
"proxy/utils"
"github.com/snail007/goproxy/utils"
"strconv"
"sync"
"time"
Expand Down
2 changes: 1 addition & 1 deletion services/tunnel_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"log"
"net"
"proxy/utils"
"github.com/snail007/goproxy/utils"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion services/tunnel_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"log"
"net"
"proxy/utils"
"github.com/snail007/goproxy/utils"
"runtime/debug"
"strconv"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion services/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"log"
"net"
"proxy/utils"
"github.com/snail007/goproxy/utils"
"runtime/debug"
"strconv"
"strings"
Expand Down

0 comments on commit 03670bf

Please sign in to comment.