blob: 59e20bf62f7964501b59d32803e3b77ba1cd8154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
// }
}
|