From c676da9a305843f8d654cb3b346e85bd37829c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Sat, 28 Oct 2017 23:40:24 +0300 Subject: [PATCH] Running go fmt --- server/main.go | 4 ++-- server/server/commands.go | 10 +++++----- server/server/connection.go | 4 ++-- server/server/errors.go | 2 +- server/server/parser.go | 2 +- server/server/stack_test.go | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/server/main.go b/server/main.go index 532d22a..4a5ca11 100644 --- a/server/main.go +++ b/server/main.go @@ -1,9 +1,9 @@ package main import ( - "net" - "log" "github.com/metonimie/simpleFTP/server/server" + "log" + "net" ) func main() { diff --git a/server/server/commands.go b/server/server/commands.go index 72c7a5f..1a182e7 100644 --- a/server/server/commands.go +++ b/server/server/commands.go @@ -1,13 +1,13 @@ package server import ( - "net" - "strings" - "os" - "log" - "io/ioutil" "bytes" + "io/ioutil" + "log" + "net" + "os" "strconv" + "strings" ) // PATH is the constant which should contain the fixed path where the simpleFTP server will run diff --git a/server/server/connection.go b/server/server/connection.go index 3d65e03..58d637b 100644 --- a/server/server/connection.go +++ b/server/server/connection.go @@ -1,10 +1,10 @@ package server import ( - "net" + "bufio" "io" "log" - "bufio" + "net" ) func HandleConnection(c net.Conn) { diff --git a/server/server/errors.go b/server/server/errors.go index b264982..fd3abe0 100644 --- a/server/server/errors.go +++ b/server/server/errors.go @@ -36,5 +36,5 @@ func (e StackError) Error() string { return e.ErrorName + ": " + e.Err.Error() } var ( StackInvalidTypeError = StackError{"InvalidTypeError", errors.New("Invalid item type for the Stack")} StackOverflowError = StackError{"StackOverflowError", errors.New("Stack capacity exceeded!")} - StackUnderflowError = StackError{"StackUnderflowError", errors.New("Stack is empty!")} + StackUnderflowError = StackError{"StackUnderflowError", errors.New("Stack is empty!")} ) diff --git a/server/server/parser.go b/server/server/parser.go index ecf284b..1f898dc 100644 --- a/server/server/parser.go +++ b/server/server/parser.go @@ -85,4 +85,4 @@ func ProcessInput(c net.Conn, text string) error { } return nil -} \ No newline at end of file +} diff --git a/server/server/stack_test.go b/server/server/stack_test.go index 9ac88ee..704aef5 100644 --- a/server/server/stack_test.go +++ b/server/server/stack_test.go @@ -1,8 +1,8 @@ package server import ( - "testing" "math/rand" + "testing" ) func TestMakeStringStack(t *testing.T) {