mirror of
https://github.com/renorris/openfsd
synced 2026-03-22 06:25:35 +08:00
19 lines
230 B
Go
19 lines
230 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
"os/signal"
|
|
)
|
|
|
|
func main() {
|
|
ctx, _ := signal.NotifyContext(context.Background(), os.Interrupt)
|
|
|
|
server, err := NewDefaultServer(ctx)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
server.Run(ctx)
|
|
}
|