Running go fmt

This commit is contained in:
Denis-Cosmin Nutiu 2017-10-28 23:40:24 +03:00
parent d5c1554496
commit c676da9a30
6 changed files with 12 additions and 12 deletions

View file

@ -1,9 +1,9 @@
package main package main
import ( import (
"net"
"log"
"github.com/metonimie/simpleFTP/server/server" "github.com/metonimie/simpleFTP/server/server"
"log"
"net"
) )
func main() { func main() {

View file

@ -1,13 +1,13 @@
package server package server
import ( import (
"net"
"strings"
"os"
"log"
"io/ioutil"
"bytes" "bytes"
"io/ioutil"
"log"
"net"
"os"
"strconv" "strconv"
"strings"
) )
// PATH is the constant which should contain the fixed path where the simpleFTP server will run // PATH is the constant which should contain the fixed path where the simpleFTP server will run

View file

@ -1,10 +1,10 @@
package server package server
import ( import (
"net" "bufio"
"io" "io"
"log" "log"
"bufio" "net"
) )
func HandleConnection(c net.Conn) { func HandleConnection(c net.Conn) {

View file

@ -36,5 +36,5 @@ func (e StackError) Error() string { return e.ErrorName + ": " + e.Err.Error() }
var ( var (
StackInvalidTypeError = StackError{"InvalidTypeError", errors.New("Invalid item type for the Stack")} StackInvalidTypeError = StackError{"InvalidTypeError", errors.New("Invalid item type for the Stack")}
StackOverflowError = StackError{"StackOverflowError", errors.New("Stack capacity exceeded!")} StackOverflowError = StackError{"StackOverflowError", errors.New("Stack capacity exceeded!")}
StackUnderflowError = StackError{"StackUnderflowError", errors.New("Stack is empty!")} StackUnderflowError = StackError{"StackUnderflowError", errors.New("Stack is empty!")}
) )

View file

@ -85,4 +85,4 @@ func ProcessInput(c net.Conn, text string) error {
} }
return nil return nil
} }

View file

@ -1,8 +1,8 @@
package server package server
import ( import (
"testing"
"math/rand" "math/rand"
"testing"
) )
func TestMakeStringStack(t *testing.T) { func TestMakeStringStack(t *testing.T) {