From 34ef7fa236d6981a98c9bf64d0ca178933eb776d Mon Sep 17 00:00:00 2001 From: psi Date: Wed, 2 May 2018 19:58:29 +0900 Subject: [PATCH] format import --- README.md | 12 ++++++++++++ web/entity.go | 4 +--- web/moment.go | 17 +++++------------ web/moment_cache.go | 3 +-- web/server.go | 6 ++---- 5 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1c6c41c --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ + +# How to build + +```bash +go get -u "github.com/Sirupsen/logrus" +go get -u "golang.org/x/net/context" +go get -u "github.com/julienschmidt/httprouter" +go get -u "gopkg.in/yaml.v2" +go get -u "github.com/nfnt/resize" +go get -u "github.com/oliamb/cutter" +go get -u "github.com/disintegration/imaging" +``` diff --git a/web/entity.go b/web/entity.go index ce22f57..52acbd6 100644 --- a/web/entity.go +++ b/web/entity.go @@ -1,12 +1,10 @@ package web import ( + "io" "net/http" - "os" - "io" - "github.com/julienschmidt/httprouter" ) diff --git a/web/moment.go b/web/moment.go index 1682f8c..c499ca3 100644 --- a/web/moment.go +++ b/web/moment.go @@ -1,21 +1,14 @@ package web import ( - "net/http" - - "strconv" - - "math/rand" - - "time" - "encoding/json" - - "math" - "fmt" - + "math" + "math/rand" + "net/http" + "strconv" "strings" + "time" "github.com/FairyRockets/the-gear-of-seasons/entity" "github.com/FairyRockets/the-gear-of-seasons/moment" diff --git a/web/moment_cache.go b/web/moment_cache.go index 2217583..59de3f9 100644 --- a/web/moment_cache.go +++ b/web/moment_cache.go @@ -1,10 +1,9 @@ package web import ( - "sync" - "fmt" "regexp" + "sync" "github.com/FairyRockets/the-gear-of-seasons/entity" "github.com/FairyRockets/the-gear-of-seasons/moment" diff --git a/web/server.go b/web/server.go index 375862a..39d5e1d 100644 --- a/web/server.go +++ b/web/server.go @@ -1,13 +1,11 @@ package web import ( + "fmt" "html/template" "net/http" - "time" - - "fmt" - "path/filepath" + "time" "github.com/FairyRockets/the-gear-of-seasons/entity" "github.com/FairyRockets/the-gear-of-seasons/moment"