protohackers/cmd/primetime/main.go

25 lines
290 B
Go
Raw Normal View History

2022-11-07 19:01:00 +00:00
package main
import (
"log"
"net"
"protohackers/pkg/conn"
)
type data struct {
Method string `json:"method"`
Number int `json:"number"`
}
func main() {
err := conn.StartSimple(primetime)
if err != nil {
log.Fatalln(err)
}
}
func primetime(c net.Conn) {
2022-11-07 19:06:30 +00:00
defer c.Close()
2022-11-07 19:01:00 +00:00
}