mirror of
https://github.com/cupcakearmy/codecrafters-http-server-go.git
synced 2025-09-05 17:30:40 +00:00
init [skip ci]
This commit is contained in:
27
app/server.go
Normal file
27
app/server.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
// Uncomment this block to pass the first stage
|
||||
// "net"
|
||||
// "os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// You can use print statements as follows for debugging, they'll be visible when running tests.
|
||||
fmt.Println("Logs from your program will appear here!")
|
||||
|
||||
// Uncomment this block to pass the first stage
|
||||
//
|
||||
// l, err := net.Listen("tcp", "0.0.0.0:4221")
|
||||
// if err != nil {
|
||||
// fmt.Println("Failed to bind to port 4221")
|
||||
// os.Exit(1)
|
||||
// }
|
||||
//
|
||||
// _, err = l.Accept()
|
||||
// if err != nil {
|
||||
// fmt.Println("Error accepting connection: ", err.Error())
|
||||
// os.Exit(1)
|
||||
// }
|
||||
}
|
Reference in New Issue
Block a user