Files
forge/main.go
2025-11-27 11:06:38 +08:00

25 lines
361 B
Go

package main
import (
"context"
"os"
"os/signal"
"syscall"
"time"
"yizhisec.com/hsv2/forge/internal/cmd"
)
func init() {
time.Local = time.FixedZone("CST", 8*60*60)
}
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
if err := cmd.Execute(ctx); err != nil {
os.Exit(1)
}
}