Running go fmt
This commit is contained in:
parent
d5c1554496
commit
c676da9a30
6 changed files with 12 additions and 12 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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!")}
|
||||||
)
|
)
|
||||||
|
|
|
@ -85,4 +85,4 @@ func ProcessInput(c net.Conn, text string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue