From 33363850680992b294dc080a9e8037bf4409e3e0 Mon Sep 17 00:00:00 2001 From: hustjieke Date: Tue, 6 Apr 2021 11:30:53 +0800 Subject: [PATCH] *.: keep import called lib consistent with radon #120 [summary] import lib order like: import ( "system lib1" "system lib2" ... "github.com/....1" "github.com/....2" ... ) [test case] N/A [patch codecov] N/A --- src/cli/callx/callx.go | 7 ++++--- src/cli/cli.go | 3 ++- src/cli/cmd/cluster.go | 7 ++++--- src/cli/cmd/cluster_test.go | 3 ++- src/cli/cmd/common.go | 5 +++-- src/cli/cmd/init.go | 1 + src/cli/cmd/mock.go | 3 ++- src/cli/cmd/mysql.go | 5 +++-- src/cli/cmd/mysql_test.go | 3 ++- src/cli/cmd/perf.go | 1 + src/cli/cmd/raft.go | 3 ++- src/cli/cmd/raft_test.go | 5 +++-- src/cli/cmd/version.go | 3 ++- src/cli/cmd/xenon.go | 4 +++- src/cli/cmd/xenon_test.go | 3 ++- src/mysql/api.go | 3 ++- src/mysql/api_test.go | 5 +++-- src/mysql/attr.go | 1 + src/mysql/db.go | 3 ++- src/mysql/mock.go | 5 +++-- src/mysql/mysql.go | 5 +++-- src/mysql/mysql_handler.go | 1 + src/mysql/mysql_test.go | 5 +++-- src/mysql/mysqlbase.go | 3 ++- src/mysql/mysqlbase_test.go | 2 +- src/mysql/rpc_mysql_test.go | 3 ++- src/mysql/stats.go | 3 ++- src/mysqld/backup.go | 5 +++-- src/mysqld/backup_test.go | 3 ++- src/mysqld/linux_args.go | 3 ++- src/mysqld/linux_args_test.go | 3 ++- src/mysqld/mock.go | 3 ++- src/mysqld/mysqld.go | 5 +++-- src/mysqld/mysqld_test.go | 5 +++-- src/mysqld/rpc_backup_test.go | 3 ++- src/mysqld/rpc_mysqld.go | 3 ++- src/mysqld/rpc_mysqld_test.go | 3 ++- src/mysqld/stats.go | 3 ++- src/raft/attr.go | 3 ++- src/raft/candidate.go | 3 ++- src/raft/follower.go | 3 ++- src/raft/leader.go | 3 ++- src/raft/mock.go | 7 ++++--- src/raft/raft.go | 7 ++++--- src/raft/raft_test.go | 1 + src/raft/rpc_ha_test.go | 3 ++- src/raft/rpc_raft.go | 3 ++- src/raft/rpc_raft_test.go | 3 ++- src/raft/stats.go | 3 ++- src/server/mock.go | 7 ++++--- src/server/rpc_node_test.go | 3 ++- src/server/rpc_server_test.go | 3 ++- src/server/rpc_user.go | 1 + src/server/rpc_user_test.go | 3 ++- src/server/server.go | 9 +++++---- src/server/server_test.go | 1 + src/server/stats.go | 3 ++- src/xbase/common/linux.go | 4 +++- src/xbase/common/linux_test.go | 1 + src/xbase/xrpc/xrpc_test.go | 1 + src/xenon/xenon.go | 5 +++-- 61 files changed, 138 insertions(+), 76 deletions(-) diff --git a/src/cli/callx/callx.go b/src/cli/callx/callx.go index 90c5a45..75dc719 100644 --- a/src/cli/callx/callx.go +++ b/src/cli/callx/callx.go @@ -10,16 +10,17 @@ package callx import ( "bytes" - "config" "fmt" "io/ioutil" - "model" "os" - "raft" "strconv" "strings" "text/tabwriter" "time" + + "config" + "model" + "raft" "xbase/xlog" "xbase/xrpc" diff --git a/src/cli/cli.go b/src/cli/cli.go index e54b955..a2b5b9b 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -9,10 +9,11 @@ package main import ( - "cli/cmd" "fmt" "os" + "cli/cmd" + "github.com/spf13/cobra" ) diff --git a/src/cli/cmd/cluster.go b/src/cli/cmd/cluster.go index 67bf2cc..2ebac0e 100644 --- a/src/cli/cmd/cluster.go +++ b/src/cli/cmd/cluster.go @@ -10,18 +10,19 @@ package cmd import ( "bufio" - "cli/callx" "encoding/json" "fmt" - "model" "net" "os" "path" "path/filepath" - "raft" "regexp" "sort" "strings" + + "cli/callx" + "model" + "raft" "xbase/common" "github.com/spf13/cobra" diff --git a/src/cli/cmd/cluster_test.go b/src/cli/cmd/cluster_test.go index 85081e6..bfafc00 100644 --- a/src/cli/cmd/cluster_test.go +++ b/src/cli/cmd/cluster_test.go @@ -10,9 +10,10 @@ package cmd import ( "fmt" + "testing" + "raft" "server" - "testing" "xbase/common" "xbase/xlog" diff --git a/src/cli/cmd/common.go b/src/cli/cmd/common.go index 2f36222..ad069a7 100644 --- a/src/cli/cmd/common.go +++ b/src/cli/cmd/common.go @@ -10,14 +10,15 @@ package cmd import ( "bytes" - "config" "fmt" "io/ioutil" - "model" "os" "path/filepath" "runtime" "strings" + + "config" + "model" "xbase/xlog" "github.com/spf13/cobra" diff --git a/src/cli/cmd/init.go b/src/cli/cmd/init.go index efbda1a..a237f98 100644 --- a/src/cli/cmd/init.go +++ b/src/cli/cmd/init.go @@ -11,6 +11,7 @@ package cmd import ( "fmt" "strings" + "xbase/common" "github.com/spf13/cobra" diff --git a/src/cli/cmd/mock.go b/src/cli/cmd/mock.go index 448ce56..78cbb78 100644 --- a/src/cli/cmd/mock.go +++ b/src/cli/cmd/mock.go @@ -1,8 +1,9 @@ package cmd import ( - "config" "os" + + "config" ) var defaultConfig = config.Config{ diff --git a/src/cli/cmd/mysql.go b/src/cli/cmd/mysql.go index 945f48e..6c674db 100644 --- a/src/cli/cmd/mysql.go +++ b/src/cli/cmd/mysql.go @@ -9,14 +9,15 @@ package cmd import ( - "cli/callx" "encoding/json" "fmt" - "model" "path" "strconv" "strings" "time" + + "cli/callx" + "model" "xbase/common" "github.com/spf13/cobra" diff --git a/src/cli/cmd/mysql_test.go b/src/cli/cmd/mysql_test.go index 8e880e7..853c122 100644 --- a/src/cli/cmd/mysql_test.go +++ b/src/cli/cmd/mysql_test.go @@ -9,10 +9,11 @@ package cmd import ( + "testing" + "mysql" "raft" "server" - "testing" "xbase/common" "xbase/xlog" diff --git a/src/cli/cmd/perf.go b/src/cli/cmd/perf.go index 19fba2a..195da92 100644 --- a/src/cli/cmd/perf.go +++ b/src/cli/cmd/perf.go @@ -11,6 +11,7 @@ package cmd import ( "encoding/json" "fmt" + "xbase/common" "xbase/xlog" diff --git a/src/cli/cmd/raft.go b/src/cli/cmd/raft.go index 66c75d8..fed130d 100644 --- a/src/cli/cmd/raft.go +++ b/src/cli/cmd/raft.go @@ -9,11 +9,12 @@ package cmd import ( - "cli/callx" "encoding/json" "fmt" "strings" + "cli/callx" + "github.com/spf13/cobra" ) diff --git a/src/cli/cmd/raft_test.go b/src/cli/cmd/raft_test.go index 3ac686b..910393a 100644 --- a/src/cli/cmd/raft_test.go +++ b/src/cli/cmd/raft_test.go @@ -11,10 +11,11 @@ package cmd import ( "errors" "fmt" - "raft" - "server" "testing" "time" + + "raft" + "server" "xbase/common" "xbase/xlog" diff --git a/src/cli/cmd/version.go b/src/cli/cmd/version.go index 8eb5f63..1616be1 100644 --- a/src/cli/cmd/version.go +++ b/src/cli/cmd/version.go @@ -9,9 +9,10 @@ package cmd import ( - "build" "fmt" + "build" + "github.com/spf13/cobra" ) diff --git a/src/cli/cmd/xenon.go b/src/cli/cmd/xenon.go index 908210c..9456686 100644 --- a/src/cli/cmd/xenon.go +++ b/src/cli/cmd/xenon.go @@ -9,8 +9,10 @@ package cmd import ( - "cli/callx" "fmt" + + "cli/callx" + "github.com/spf13/cobra" ) diff --git a/src/cli/cmd/xenon_test.go b/src/cli/cmd/xenon_test.go index 28a76bc..5df285a 100644 --- a/src/cli/cmd/xenon_test.go +++ b/src/cli/cmd/xenon_test.go @@ -9,8 +9,9 @@ package cmd import ( - "server" "testing" + + "server" "xbase/common" "xbase/xlog" diff --git a/src/mysql/api.go b/src/mysql/api.go index 3f1753e..bf40d3a 100644 --- a/src/mysql/api.go +++ b/src/mysql/api.go @@ -11,11 +11,12 @@ package mysql import ( "database/sql" "fmt" - "model" "strconv" "strings" "time" + "model" + "github.com/pkg/errors" ) diff --git a/src/mysql/api_test.go b/src/mysql/api_test.go index 96cfb35..53f2642 100644 --- a/src/mysql/api_test.go +++ b/src/mysql/api_test.go @@ -9,10 +9,11 @@ package mysql import ( - "config" "fmt" - "model" "testing" + + "config" + "model" "xbase/xlog" _ "github.com/go-sql-driver/mysql" diff --git a/src/mysql/attr.go b/src/mysql/attr.go index 5451233..29628e6 100644 --- a/src/mysql/attr.go +++ b/src/mysql/attr.go @@ -10,6 +10,7 @@ package mysql import ( "fmt" + "model" ) diff --git a/src/mysql/db.go b/src/mysql/db.go index f44efb6..bb39b94 100644 --- a/src/mysql/db.go +++ b/src/mysql/db.go @@ -10,11 +10,12 @@ package mysql import ( "database/sql" - "github.com/pkg/errors" + "xbase/common" // driver. _ "github.com/go-sql-driver/mysql" + "github.com/pkg/errors" ) // Query executes a query that returns rows diff --git a/src/mysql/mock.go b/src/mysql/mock.go index 8a230dc..6392f8c 100644 --- a/src/mysql/mock.go +++ b/src/mysql/mock.go @@ -9,11 +9,12 @@ package mysql import ( - "config" "database/sql" "fmt" - "model" "testing" + + "config" + "model" "xbase/xlog" "xbase/xrpc" diff --git a/src/mysql/mysql.go b/src/mysql/mysql.go index 49bb0c9..6de6749 100644 --- a/src/mysql/mysql.go +++ b/src/mysql/mysql.go @@ -9,12 +9,13 @@ package mysql import ( - "config" "database/sql" "fmt" - "model" "sync" "time" + + "config" + "model" "xbase/common" "xbase/xlog" ) diff --git a/src/mysql/mysql_handler.go b/src/mysql/mysql_handler.go index d52f137..d1eb207 100644 --- a/src/mysql/mysql_handler.go +++ b/src/mysql/mysql_handler.go @@ -10,6 +10,7 @@ package mysql import ( "database/sql" + "model" ) diff --git a/src/mysql/mysql_test.go b/src/mysql/mysql_test.go index 8cd4402..edd9639 100644 --- a/src/mysql/mysql_test.go +++ b/src/mysql/mysql_test.go @@ -9,10 +9,11 @@ package mysql import ( - "config" - "model" "testing" "time" + + "config" + "model" "xbase/common" "xbase/xlog" diff --git a/src/mysql/mysqlbase.go b/src/mysql/mysqlbase.go index a6243d3..585940e 100644 --- a/src/mysql/mysqlbase.go +++ b/src/mysql/mysqlbase.go @@ -11,10 +11,11 @@ package mysql import ( "database/sql" "fmt" - "model" "strconv" "strings" + "model" + "github.com/pkg/errors" ) diff --git a/src/mysql/mysqlbase_test.go b/src/mysql/mysqlbase_test.go index 98d118e..7da332f 100644 --- a/src/mysql/mysqlbase_test.go +++ b/src/mysql/mysqlbase_test.go @@ -10,10 +10,10 @@ package mysql import ( "fmt" - "model" "testing" "config" + "model" "xbase/xlog" _ "github.com/go-sql-driver/mysql" diff --git a/src/mysql/rpc_mysql_test.go b/src/mysql/rpc_mysql_test.go index 0c6795e..fc8fedd 100644 --- a/src/mysql/rpc_mysql_test.go +++ b/src/mysql/rpc_mysql_test.go @@ -9,8 +9,9 @@ package mysql import ( - "model" "testing" + + "model" "xbase/common" "xbase/xlog" diff --git a/src/mysql/stats.go b/src/mysql/stats.go index 56d9a68..6d7f069 100644 --- a/src/mysql/stats.go +++ b/src/mysql/stats.go @@ -9,8 +9,9 @@ package mysql import ( - "model" "sync/atomic" + + "model" ) // IncMysqlDowns used to increase the mysql down counter. diff --git a/src/mysqld/backup.go b/src/mysqld/backup.go index dd0d869..1d0cd93 100644 --- a/src/mysqld/backup.go +++ b/src/mysqld/backup.go @@ -9,11 +9,12 @@ package mysqld import ( - "config" "fmt" - "model" "strings" "time" + + "config" + "model" "xbase/common" "xbase/xlog" diff --git a/src/mysqld/backup_test.go b/src/mysqld/backup_test.go index 7979a66..ba3598d 100644 --- a/src/mysqld/backup_test.go +++ b/src/mysqld/backup_test.go @@ -9,9 +9,10 @@ package mysqld import ( + "testing" + "config" "model" - "testing" "xbase/common" "xbase/xlog" diff --git a/src/mysqld/linux_args.go b/src/mysqld/linux_args.go index 7ac9021..931b8a8 100644 --- a/src/mysqld/linux_args.go +++ b/src/mysqld/linux_args.go @@ -9,9 +9,10 @@ package mysqld import ( - "config" "fmt" "path/filepath" + + "config" ) var ( diff --git a/src/mysqld/linux_args_test.go b/src/mysqld/linux_args_test.go index f23c268..1ae106a 100644 --- a/src/mysqld/linux_args_test.go +++ b/src/mysqld/linux_args_test.go @@ -9,10 +9,11 @@ package mysqld import ( - "config" "strings" "testing" + "config" + "github.com/stretchr/testify/assert" ) diff --git a/src/mysqld/mock.go b/src/mysqld/mock.go index 9bcc9c0..9925c13 100644 --- a/src/mysqld/mock.go +++ b/src/mysqld/mock.go @@ -9,9 +9,10 @@ package mysqld import ( - "config" "fmt" "testing" + + "config" "xbase/common" "xbase/xlog" "xbase/xrpc" diff --git a/src/mysqld/mysqld.go b/src/mysqld/mysqld.go index 95c0798..f6befc1 100644 --- a/src/mysqld/mysqld.go +++ b/src/mysqld/mysqld.go @@ -9,12 +9,13 @@ package mysqld import ( - "config" - "model" "strconv" "strings" "sync" "time" + + "config" + "model" "xbase/common" "xbase/xlog" ) diff --git a/src/mysqld/mysqld_test.go b/src/mysqld/mysqld_test.go index 0c16e10..615d832 100644 --- a/src/mysqld/mysqld_test.go +++ b/src/mysqld/mysqld_test.go @@ -9,11 +9,12 @@ package mysqld import ( - "config" "fmt" - "model" "testing" "time" + + "config" + "model" "xbase/common" "xbase/xlog" diff --git a/src/mysqld/rpc_backup_test.go b/src/mysqld/rpc_backup_test.go index 3bdf560..f165016 100644 --- a/src/mysqld/rpc_backup_test.go +++ b/src/mysqld/rpc_backup_test.go @@ -9,8 +9,9 @@ package mysqld import ( - "model" "testing" + + "model" "xbase/common" "xbase/xlog" diff --git a/src/mysqld/rpc_mysqld.go b/src/mysqld/rpc_mysqld.go index 89383be..d6f49c1 100644 --- a/src/mysqld/rpc_mysqld.go +++ b/src/mysqld/rpc_mysqld.go @@ -10,8 +10,9 @@ package mysqld import ( "fmt" - "model" "time" + + "model" ) // MysqldRPC tuple. diff --git a/src/mysqld/rpc_mysqld_test.go b/src/mysqld/rpc_mysqld_test.go index 4a3097a..c4a251f 100644 --- a/src/mysqld/rpc_mysqld_test.go +++ b/src/mysqld/rpc_mysqld_test.go @@ -9,8 +9,9 @@ package mysqld import ( - "model" "testing" + + "model" "xbase/common" "xbase/xlog" diff --git a/src/mysqld/stats.go b/src/mysqld/stats.go index 0b2eb15..861bc11 100644 --- a/src/mysqld/stats.go +++ b/src/mysqld/stats.go @@ -9,8 +9,9 @@ package mysqld import ( - "model" "sync/atomic" + + "model" ) // IncBackups used to increase the backup counter. diff --git a/src/raft/attr.go b/src/raft/attr.go index 8b13810..8b59de5 100644 --- a/src/raft/attr.go +++ b/src/raft/attr.go @@ -9,9 +9,10 @@ package raft import ( - "model" "sync/atomic" + "model" + "github.com/pkg/errors" ) diff --git a/src/raft/candidate.go b/src/raft/candidate.go index a4dbffa..9f37e99 100644 --- a/src/raft/candidate.go +++ b/src/raft/candidate.go @@ -9,9 +9,10 @@ package raft import ( - "model" "sync" "time" + + "model" ) // Candidate tuple. diff --git a/src/raft/follower.go b/src/raft/follower.go index 8fd821e..019877b 100644 --- a/src/raft/follower.go +++ b/src/raft/follower.go @@ -9,9 +9,10 @@ package raft import ( - "model" "strings" "sync" + + "model" ) // Follower tuple. diff --git a/src/raft/leader.go b/src/raft/leader.go index a5a46ef..9192630 100644 --- a/src/raft/leader.go +++ b/src/raft/leader.go @@ -9,10 +9,11 @@ package raft import ( - "model" "strings" "sync" "time" + + "model" "xbase/common" ) diff --git a/src/raft/mock.go b/src/raft/mock.go index dc43287..cc00cc5 100644 --- a/src/raft/mock.go +++ b/src/raft/mock.go @@ -9,13 +9,14 @@ package raft import ( - "config" "fmt" - "model" - "mysql" "os" "testing" "time" + + "config" + "model" + "mysql" "xbase/common" "xbase/xlog" "xbase/xrpc" diff --git a/src/raft/raft.go b/src/raft/raft.go index f20c423..848131b 100644 --- a/src/raft/raft.go +++ b/src/raft/raft.go @@ -9,13 +9,14 @@ package raft import ( - "config" - "model" - "mysql" "os" "path/filepath" "sync" "time" + + "config" + "model" + "mysql" "xbase/common" "xbase/xlog" ) diff --git a/src/raft/raft_test.go b/src/raft/raft_test.go index 4d3bad0..4e1ef85 100644 --- a/src/raft/raft_test.go +++ b/src/raft/raft_test.go @@ -14,6 +14,7 @@ import ( "mysql" "testing" "time" + "xbase/common" "xbase/xlog" diff --git a/src/raft/rpc_ha_test.go b/src/raft/rpc_ha_test.go index 9f89924..e079151 100644 --- a/src/raft/rpc_ha_test.go +++ b/src/raft/rpc_ha_test.go @@ -9,9 +9,10 @@ package raft import ( + "testing" + "model" "mysql" - "testing" "xbase/common" "xbase/xlog" diff --git a/src/raft/rpc_raft.go b/src/raft/rpc_raft.go index 0ff0c61..998e150 100644 --- a/src/raft/rpc_raft.go +++ b/src/raft/rpc_raft.go @@ -9,8 +9,9 @@ package raft import ( - "model" "strconv" + + "model" ) // RaftRPC tuple. diff --git a/src/raft/rpc_raft_test.go b/src/raft/rpc_raft_test.go index 8be0bf9..e6be4d6 100644 --- a/src/raft/rpc_raft_test.go +++ b/src/raft/rpc_raft_test.go @@ -9,9 +9,10 @@ package raft import ( + "testing" + "model" "mysql" - "testing" "xbase/common" "xbase/xlog" diff --git a/src/raft/stats.go b/src/raft/stats.go index caf7dce..ca143fb 100644 --- a/src/raft/stats.go +++ b/src/raft/stats.go @@ -9,9 +9,10 @@ package raft import ( - "model" "sync/atomic" "time" + + "model" ) // IncLeaderPromotes counter. diff --git a/src/server/mock.go b/src/server/mock.go index ad56809..de8015e 100644 --- a/src/server/mock.go +++ b/src/server/mock.go @@ -9,13 +9,14 @@ package server import ( - "config" "fmt" + "os" + "testing" + + "config" "mysql" "mysqld" - "os" "raft" - "testing" "xbase/common" "xbase/xlog" "xbase/xrpc" diff --git a/src/server/rpc_node_test.go b/src/server/rpc_node_test.go index 8095d83..a29d5f2 100644 --- a/src/server/rpc_node_test.go +++ b/src/server/rpc_node_test.go @@ -10,8 +10,9 @@ package server import ( "fmt" - "model" "testing" + + "model" "xbase/common" "xbase/xlog" diff --git a/src/server/rpc_server_test.go b/src/server/rpc_server_test.go index 4280b48..9f3c9bf 100644 --- a/src/server/rpc_server_test.go +++ b/src/server/rpc_server_test.go @@ -9,8 +9,9 @@ package server import ( - "model" "testing" + + "model" "xbase/common" "xbase/xlog" diff --git a/src/server/rpc_user.go b/src/server/rpc_user.go index 3b1e742..59b4249 100644 --- a/src/server/rpc_user.go +++ b/src/server/rpc_user.go @@ -10,6 +10,7 @@ package server import ( "fmt" + "model" "raft" ) diff --git a/src/server/rpc_user_test.go b/src/server/rpc_user_test.go index fed347c..7213a15 100644 --- a/src/server/rpc_user_test.go +++ b/src/server/rpc_user_test.go @@ -9,9 +9,10 @@ package server import ( + "testing" + "model" "raft" - "testing" "xbase/common" "xbase/xlog" diff --git a/src/server/server.go b/src/server/server.go index bc84c63..39671f9 100644 --- a/src/server/server.go +++ b/src/server/server.go @@ -9,15 +9,16 @@ package server import ( - "config" - "mysql" - "mysqld" "os" "os/signal" - "raft" "runtime" "syscall" "time" + + "config" + "mysql" + "mysqld" + "raft" "xbase/xlog" "xbase/xrpc" ) diff --git a/src/server/server_test.go b/src/server/server_test.go index 86feef0..8f6d633 100644 --- a/src/server/server_test.go +++ b/src/server/server_test.go @@ -10,6 +10,7 @@ package server import ( "testing" + "xbase/common" "xbase/xlog" diff --git a/src/server/stats.go b/src/server/stats.go index f41944c..0d8240a 100644 --- a/src/server/stats.go +++ b/src/server/stats.go @@ -9,8 +9,9 @@ package server import ( - "model" "time" + + "model" ) func (s *Server) getStats() *model.ServerStats { diff --git a/src/xbase/common/linux.go b/src/xbase/common/linux.go index 5ae7b28..d9e2671 100644 --- a/src/xbase/common/linux.go +++ b/src/xbase/common/linux.go @@ -12,13 +12,15 @@ import ( "bufio" "bytes" "fmt" - "github.com/pkg/errors" "io" "os/exec" "strings" "sync/atomic" "time" + "xbase/xlog" + + "github.com/pkg/errors" ) func RunCommand(cmds string, args ...string) (string, error) { diff --git a/src/xbase/common/linux_test.go b/src/xbase/common/linux_test.go index 851af52..ea6f0f6 100644 --- a/src/xbase/common/linux_test.go +++ b/src/xbase/common/linux_test.go @@ -11,6 +11,7 @@ package common import ( "runtime" "testing" + "xbase/xlog" "github.com/stretchr/testify/assert" diff --git a/src/xbase/xrpc/xrpc_test.go b/src/xbase/xrpc/xrpc_test.go index 478d683..f99a12c 100644 --- a/src/xbase/xrpc/xrpc_test.go +++ b/src/xbase/xrpc/xrpc_test.go @@ -13,6 +13,7 @@ import ( "strings" "testing" "time" + "xbase/common" "xbase/xlog" diff --git a/src/xenon/xenon.go b/src/xenon/xenon.go index 9bc4079..e15c000 100644 --- a/src/xenon/xenon.go +++ b/src/xenon/xenon.go @@ -9,12 +9,13 @@ package main import ( - "build" - "config" "flag" "fmt" _ "net/http/pprof" "os" + + "build" + "config" "raft" "server" "xbase/xlog"