mirror of
https://github.com/cupcakearmy/codecrafters-http-server-go.git
synced 2024-12-22 16:16:31 +00:00
uncomment
This commit is contained in:
parent
c96ead9f16
commit
36ab88d947
@ -3,8 +3,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
// Uncomment this block to pass the first stage
|
// Uncomment this block to pass the first stage
|
||||||
// "net"
|
"net"
|
||||||
// "os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -13,15 +13,15 @@ func main() {
|
|||||||
|
|
||||||
// Uncomment this block to pass the first stage
|
// Uncomment this block to pass the first stage
|
||||||
//
|
//
|
||||||
// l, err := net.Listen("tcp", "0.0.0.0:4221")
|
l, err := net.Listen("tcp", "0.0.0.0:4221")
|
||||||
// if err != nil {
|
if err != nil {
|
||||||
// fmt.Println("Failed to bind to port 4221")
|
fmt.Println("Failed to bind to port 4221")
|
||||||
// os.Exit(1)
|
os.Exit(1)
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// _, err = l.Accept()
|
_, err = l.Accept()
|
||||||
// if err != nil {
|
if err != nil {
|
||||||
// fmt.Println("Error accepting connection: ", err.Error())
|
fmt.Println("Error accepting connection: ", err.Error())
|
||||||
// os.Exit(1)
|
os.Exit(1)
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user