23 lines
303 B
Go
23 lines
303 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net"
|
|
|
|
"git.sr.ht/~emersion/jounce"
|
|
)
|
|
|
|
func main() {
|
|
addr := ":6667"
|
|
|
|
ln, err := net.Listen("tcp", addr)
|
|
if err != nil {
|
|
log.Fatalf("failed to start listener: %v", err)
|
|
}
|
|
|
|
s := jounce.Server{}
|
|
|
|
log.Printf("Server listening on %v", addr)
|
|
log.Fatal(s.Serve(ln))
|
|
}
|