init: 0.0.4

This commit is contained in:
loveuer
2025-04-27 16:38:51 +08:00
commit 25c76aebf2
5 changed files with 279 additions and 0 deletions

17
main.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"context"
"github.com/loveuer/ushare/internal/api"
"os/signal"
"syscall"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
api.Start(ctx)
<-ctx.Done()
}