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
import (
"net"
"log"
"github.com/metonimie/simpleFTP/server/server"
"log"
"net"
)
func main() {

View file

@ -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

View file

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

View file

@ -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!")}
)

View file

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