Skip to content

Commit

Permalink
MOD: Modify imports sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
oif committed Oct 17, 2017
1 parent 33d267e commit be7e9c8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions cmd/apexd/main.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package main

import (
"github.com/Sirupsen/logrus"
inbound "github.com/oif/apex/pkg/inbound/v1"
"github.com/oif/apex/plugin/cache"
"github.com/oif/apex/plugin/gdns"
"github.com/oif/apex/plugin/statistics"

log "github.com/Sirupsen/logrus"
)

func main() {
logrus.SetLevel(logrus.DebugLevel)
log.SetLevel(log.DebugLevel)
s := new(inbound.Server)
s.ListenAddress = ":53"
s.ListenProtocol = []string{"udp"}
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"fmt"
"os"

"github.com/BurntSushi/toml"
"github.com/oif/apex/pkg/types"

"github.com/BurntSushi/toml"
)

const (
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"testing"

"github.com/oif/apex/pkg/types"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/inbound/v1/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"sync"
"time"

plugin "github.com/oif/apex/pkg/plugin/v1"

log "github.com/Sirupsen/logrus"
"github.com/miekg/dns"
plugin "github.com/oif/apex/pkg/plugin/v1"
"github.com/sony/sonyflake"
)

Expand Down
3 changes: 2 additions & 1 deletion plugin/cache/plugin.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cache

import (
"github.com/coocood/freecache"
plugin "github.com/oif/apex/pkg/plugin/v1"

"github.com/coocood/freecache"
)

// PluginName for g.Name
Expand Down
3 changes: 2 additions & 1 deletion plugin/statistics/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package statistics
import (
"time"

"github.com/Sirupsen/logrus"
plugin "github.com/oif/apex/pkg/plugin/v1"

"github.com/Sirupsen/logrus"
)

// PluginName for g.Name
Expand Down

0 comments on commit be7e9c8

Please sign in to comment.