From 5cc38b6668c2bc48b73f89962be40b2519f83a20 Mon Sep 17 00:00:00 2001 From: kenshinx Date: Tue, 10 Feb 2015 17:00:59 +0800 Subject: [PATCH] #CodeReviewComments# imports standard library in the first group --- cache.go | 5 +++-- resolver.go | 3 ++- server.go | 3 ++- settings.go | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cache.go b/cache.go index 5bee9ec..5054c5f 100644 --- a/cache.go +++ b/cache.go @@ -4,10 +4,11 @@ import ( "crypto/md5" "encoding/json" "fmt" - "github.com/hoisie/redis" - "github.com/miekg/dns" "sync" "time" + + "github.com/hoisie/redis" + "github.com/miekg/dns" ) type KeyNotFound struct { diff --git a/resolver.go b/resolver.go index 11756c1..9287428 100644 --- a/resolver.go +++ b/resolver.go @@ -2,9 +2,10 @@ package main import ( "fmt" - "github.com/miekg/dns" "strings" "time" + + "github.com/miekg/dns" ) type ResolvError struct { diff --git a/server.go b/server.go index 5625e97..517b16f 100644 --- a/server.go +++ b/server.go @@ -1,9 +1,10 @@ package main import ( - "github.com/miekg/dns" "strconv" "time" + + "github.com/miekg/dns" ) type Server struct { diff --git a/settings.go b/settings.go index f9f6751..9a3de78 100644 --- a/settings.go +++ b/settings.go @@ -3,9 +3,10 @@ package main import ( "flag" "fmt" - "github.com/BurntSushi/toml" "os" "strconv" + + "github.com/BurntSushi/toml" ) var (