feat: go mod supported

This commit is contained in:
exfly
2019-08-10 11:10:01 +08:00
parent 25e71790c1
commit 5fcbeb60aa
302 changed files with 237 additions and 62683 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/cnlh/nps/lib/mux"
"github.com/cnlh/nps/lib/pool"
"github.com/cnlh/nps/lib/rate"
"github.com/cnlh/nps/vender/github.com/xtaci/kcp"
"github.com/xtaci/kcp-go"
"io"
"net"
"net/http"

View File

@@ -1,8 +1,8 @@
package conn
import (
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"github.com/cnlh/nps/vender/github.com/xtaci/kcp"
"github.com/astaxie/beego/logs"
"github.com/xtaci/kcp-go"
"net"
"strings"
)

View File

@@ -2,7 +2,7 @@ package conn
import (
"github.com/cnlh/nps/lib/pool"
"github.com/cnlh/nps/vender/github.com/golang/snappy"
"github.com/golang/snappy"
"io"
)

View File

@@ -2,7 +2,7 @@ package crypt
import (
"crypto/tls"
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"github.com/astaxie/beego/logs"
"net"
"os"
)

View File

@@ -4,7 +4,7 @@ package daemon
import (
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
"github.com/astaxie/beego"
"os"
"os/signal"
"path/filepath"

View File

@@ -3,7 +3,7 @@ package mux
import (
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/lib/pool"
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"github.com/astaxie/beego/logs"
"log"
"net"
"net/http"

View File

@@ -6,7 +6,7 @@ import (
"bufio"
"bytes"
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"github.com/astaxie/beego/logs"
"github.com/pkg/errors"
"io"
"net"

View File

@@ -1,7 +1,7 @@
package mux
import (
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"github.com/astaxie/beego/logs"
"testing"
"time"
)