test runners

This commit is contained in:
2025-11-22 00:28:55 +08:00
parent a3b9228335
commit c16653a645
6 changed files with 301 additions and 2 deletions

15
internal/service/web.go Normal file
View File

@@ -0,0 +1,15 @@
package service
import (
"log"
"net/http"
)
func WebService() {
log.Printf("[Info] Starting web service")
log.Printf("[Info] Web service started on 0.0.0.0:2233")
err := http.ListenAndServe("0.0.0.0:2233", nil)
if err != nil {
log.Fatalf("[Error] Failed to start server: %v", err)
}
}