Chore: refine go import (#291)

This commit is contained in:
Loyalsoldier
2021-04-02 04:23:50 +08:00
committed by GitHub
parent 297bc94080
commit d8810a4d11
34 changed files with 67 additions and 57 deletions
+2 -1
View File
@@ -7,11 +7,12 @@ import (
"fmt"
"io"
"google.golang.org/grpc"
"github.com/p4gefau1t/trojan-go/api/service"
"github.com/p4gefau1t/trojan-go/common"
"github.com/p4gefau1t/trojan-go/log"
"github.com/p4gefau1t/trojan-go/option"
"google.golang.org/grpc"
)
type apiController struct {
+2 -1
View File
@@ -6,10 +6,11 @@ import (
"testing"
"time"
"google.golang.org/grpc"
"github.com/p4gefau1t/trojan-go/common"
"github.com/p4gefau1t/trojan-go/config"
"github.com/p4gefau1t/trojan-go/statistic/memory"
"google.golang.org/grpc"
)
func TestClientAPI(t *testing.T) {
+3 -2
View File
@@ -8,14 +8,15 @@ import (
"io/ioutil"
"net"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/p4gefau1t/trojan-go/api"
"github.com/p4gefau1t/trojan-go/common"
"github.com/p4gefau1t/trojan-go/config"
"github.com/p4gefau1t/trojan-go/log"
"github.com/p4gefau1t/trojan-go/statistic"
"github.com/p4gefau1t/trojan-go/tunnel/trojan"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
type ServerAPI struct {
+3 -2
View File
@@ -9,11 +9,12 @@ import (
"testing"
"time"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/p4gefau1t/trojan-go/common"
"github.com/p4gefau1t/trojan-go/config"
"github.com/p4gefau1t/trojan-go/statistic/memory"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
func TestServerAPI(t *testing.T) {