Allow multiple url regexp and apply fmt

This commit is contained in:
Leonid Bugaev
2015-07-09 16:05:00 +05:00
parent 1ce10249be
commit 29035d4518
10 changed files with 224 additions and 171 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
package main
import (
"encoding/hex"
"io"
"log"
"net"
"sync"
"testing"
"encoding/hex"
)
func TestTCPInput(t *testing.T) {
@@ -40,7 +40,7 @@ func TestTCPInput(t *testing.T) {
for i := 0; i < 100; i++ {
wg.Add(1)
encoded := make([]byte, len(msg)*2 + 1)
encoded := make([]byte, len(msg)*2+1)
hex.Encode(encoded, msg)
conn.Write(append(encoded, '\n'))
}